We have merged our Atlassian licensing and consulting business with our partners over at Seibert Group. The Actonic apps will continue to be developed by the same caring team as before.

Mandatory attachment requirement for a specific status in Jira

The Problem

A user requires a mandatory pdf attachment for a specific workflow transition. How do you ensure that? Try taking the steps below.

The Solution

Please, note: you should have a scripting plugin like Power Groovy, MyGroovy or Scriptrunner.

1. Go to the Workflow

2. Click on Transition

3. Add a validator

a. Select Scripted (Groovy) Validator (JMWE add-on) and click Add

b. Enter the following in the Condition field: issue.getAttachments( ).find {it.filename.endsWith(“.pdf”)}. Then click Update.

Example:

Transition Screen: Approve Cost

In the case of an error, click Cancel

Add a PDF attachment:

Move the issue to the next status.

That should do it!


We hope it helps. If you have any questions, do not hesitate to contact us at [email protected].


Check out our other articles:

Let’s stay in touch!

Follow us on LinkedInFacebook and Twitter, and subscribe to our newsletter to get regular updates, tips and special offers delivered directly to your mailbox.

Want
to know more?

Contact us to talk to our experts and have all your questions answered.

Request
free offer

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.