Transition trigger for Automation for JIRA

Hello,

I need to launch a rule on Automation for JIRA when my issue transitionned from "Test" to "Waiting for Fix" and only in that case.

I used:

- Trigger --> Issue transitioned

- Condition --> status = "Test" AND status CHANGED FROM "Test" TO "Waiting For Fix"

There is one case for which it is not working: Let say my issue already transitionned from "Test" to "Waiting for Fix" 10 days ago. Today I transition my issue from "Test" to "Resolved" (this is another status available from Test)

The rule will be launched because my trigger is OK and my condition is OK.

 

I would like something like "Trigger only from "Test" to "Waiting for Fix""

Thank you for your help.

Romain

2 answers

1 accepted

1 vote
Nick Menere Community Champion Sep 26, 2017

Hey Romain,

 

In order to do this you can use the "Compare Condition" and access the changelog for the previous value and current value.

The condition will have following values:

First Value:

{{changelog.status.first.fromString}} - {{changelog.status.first.toString}} 

 Condition: Equals

Second value: Test - Waiting for Fix

 

Hope that is what you were after.

 

Cheers,

Nick

Thank you Nick. I used something very similar and it works!

Checks if:
{{#changelog.status}}{{fromString}} - {{toString}}{{/changelog.status}} equals Test - Waiting for Fix

Romain, I have the same rule with several staus from "Test"

Your rule config should be

- Trigger --> Issue transitioned

- Condition --> status = "Waiting For Fix"

With this way it works fine for me. hope it helps.

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
Bridget Sauer
Published 10 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

34 views 0 3
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