How can I add a post function to a workflow that Tester has to attach test results documents before closing the Issue ?


1 answer

1 accepted

2 votes

A post-function is a bit late in the cycle to do this - post-functions run when a transition is committed to.

You need a validator to check that an attachment has been added.  A validator simply returns a "pass or faile" result to JIRA, with pass meaning "yes, go run the post-functions and update all the data" and fail meaning "no, return the user back to the screen they were on and tell them what they've done wrong"

There are several add-ons that provide a validator on attachments in the marketplace.  Most of them just check that there is at least X attachments, and if you want to do something more clever (like check the type, or have a look at the content), you'll need something like the Script Runner or your own code.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

938 views 5 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot