Conditional workflow transition based on screen input


I am trying to solve a request from our QA department on how to handle a workflow transition in Jira. The request from Q/A was to add a way so that a task has to be tested by at least 2 Q/A people before the task passes Q/A. In our workflow we have a step "Being Tested" with 2 outgoing transitions "Testing Passed" and "Testing Failed". The transiton screen has Q/A fill out a field as to what platform they tested the issue in (windows or mac).

So, what I need to figure out is how to check for this condition... Tester passes issue and selects "windows" as tested platform. If item item has not been passed for "mac" then transition back to "being tested". If issue has passed both platforms then transition to "validated".

If anyone has an idea as to how I can accomplish this please let me know.


2 answers

Hi Dave,

First off, you'll need a multi select for that "Tested platform" since you need to remember what platforms has this been tested on before.

Then you'll need a plugin that provides validators to do that. You should give JJupin a try. It provides an easy to use scripting language (SIL - Simple Issue Language) and will accomplish what you want with this simple script:

if( elementExists(customfield_xxxxx, "mac") && elementExists(customfield_xxxxx, "windows")) { 
// where xxxxx is the id of the "Tested platform" custom field
    return false, "customfield_xxxxx", "You need to test this on mac AND windows!";

Additionally, Blitz Actions can further improve this flow by creating additional buttons on the issue, which your testers can use to open a form and add more "Tested platforms" (provided it's a multi-select custom field) without having permission to edit the entire issue.

Hope this helps!

0 votes
Renjith Pillai Community Champion Jan 06, 2013

There is an old document which talks about Parallel workflows without using a plugin -

You need to test this in a test instance before trying out in the actual JIRA. Basically you will create two transitions, Testing Passed for Mac and Testing Passed for Windows and if both happens, it will reach the required destination status.

Otherwise the next option is have a workflow which has the transitions "Testing Passed", but it does not change the status and the issue remains in "Being Tested" itself, but just gets the platforms updated. And use the script runner and add a listener and if both values are selected transition the issue to the next status (have this transition in workflow protected by a condition for normal users)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,853 views 12 18
Join discussion

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