Selection by status category for "Issue transitioned" trigger

Thomas Heidenreich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2019

Hi codebarrels,

it could be great to have an an automation rule that runs on reopenend issues, i.e. for every transition from a status in the category "done" to a status in the category "todo".

Selecting every single status is very impractical and prone to errors.

thanks for considering that :)
Thomas

2 answers

1 vote
Nick Menere
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2019

Hi Thomas,

This can't be directly done and I have raised a feature request at - https://codebarrel.atlassian.net/browse/AUT-1321

 

Some indirect solutions could be:

  • Listen for Field value changes to resolution and add a condition to check that it is being cleared. (some value to empty value)

Though sometimes resolutions aren't always used 100% like this.

  • Use an issue property to track this:

The rule would look like:

  • Issue transitioned trigger
  • if/else block
    • If statuscategory = "In Progress"
    • and issue.properties.isClosedStatus Equals true
      • Do Some action on Reopen
      • Set property to false
    • else if statuscategory = "Done"
    • and issue.properties.isClosedStatus Equals false
      • Set property to true

If you think one of these could work for you, let me know and I can expand on the answer if needed.

 

Cheers,
Nick [Automation for Jira]
Co-founder

0 votes
Renni Verho
Contributor
October 5, 2022

Hi, 

https://codebarrel.atlassian.net/browse/AUT-1321 looks to be closed as Won't do. 

We have workaround to handle 50% of similar issue, but would like to have from statuscategory in to use also. 

 

Our current solution is to use: 

When: Issue transitioned

if: issue matches JQL : statusCategory = "In Progress"

 

In this solution we need to add all possible todo status category statuses to "From status" list.

Would be great to get status categories option to Issue transitioned trigger. 

 

BR, 

Renni

Wojciech Wardaszko _HeroCoders_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2022

you could also try leaving the from status field empty? Not tested, but would likely just use the JQL to filter out the trigger issues. Performance-wise it might soon turn to be a monster though, likely why the AUT-1321 was rejected...

Renni Verho
Contributor
October 7, 2022

yes empty "from field"matches to all. 

Problem comes if you like to have eg. from category = done  clean resolution if if: issue matches JQL : statusCategory = "In Progress" 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events