Mandatory attachment requirement for a specific status in Jira - Actonic – Unfolding your potential
We have outsourced our Atlassian licensing and services business to the newly founded Seibert Solutions GmbH. Actonic's products will be further developed under the usual name.

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.