Workflow transitions for "In Review" status

Hi,

I have two requirements needed for requirement review workflows.

  1. On one work flow I require that a draft must be approved by two individual parties before progressing on to "Review Complete". And a management override must also exist.
  2. On another workflow I require that a draft is held at "In Review" status for 24hrs. If in this time no action is taken by the reviewers the workflow automatically progresses onto the next Status: "Review Complete".

Is this possible?

Many Thanks,

Chris

 

1 answer

To meet your requirements you need to have a scripting plugin such as ScriptRunner to be able to make these changes. Using ScriptRunner this is how you would approach your two requirements.

  1. On one work flow I require that a draft must be approved by two individual parties before progressing on to "Review Complete". And a management override must also exist.

Have a self-reflecting workflow action that checks a custom field for approvers and allows (a restricted set of) users to approve. This workflow action would have a condition to check that there are < 2 approvals recorded.

The second transition would be available to progress with the condition.

Count users in custom field >1 OR management role

This then allows your management overrule to take place. See https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_simple_scripted_condition for how to include more complex scripted conditions than those provided by JIRA as default.

  1. On another workflow I require that a draft is held at "In Review" status for 24hrs. If in this time no action is taken by the reviewers the workflow automatically progresses onto the next Status: "Review Complete".

To achieve this with ScriptRunner you would have a scheduled process which would look at all issues in "In Review" and the duration that they have been in there. Once they go past 24 hours it would automatically transition to "Review Complete".  This is called an escalation service and is described here - https://scriptrunner.adaptavist.com/latest/jira/escalation-service.html

Hi Phil, Thanks so much for answering! Very helpful information! Will I struggle to implement this with scriptrunner if I dont have any coding experience? Is what you suggested possible with any of the available plugins for JIRA? Thanks, Chris

Would I be able to implement this using JIRA Workflow Toolbox?

Hi Chris I do not have JIRA Workflow Toolbox installed and a quick look at the documentation is showing lots of weird links.... But in principle it looks like you should be able to do the first requirement. So Condition can be based on regular expression or a mathematical check if you are just incrementing approvals which is all present. The post-function exists to increment approvals by 1 so that is possible. However I am not seeing any part that would provide you with an automated transition but maybe I am missing something here?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

808 views 2 19
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