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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I made minor changes and it worked for me..
{{#changelog.status}}{{fromString}} - {{toString}}{{/}}
Equals
Open - In Progress
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For some reason it doesn't work for me in Data Center 7.4 version ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.