Transition trigger for Automation for JIRA

Romain VELON September 26, 2017

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

3 answers

1 accepted

3 votes
Answer accepted
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.
September 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

Romain VELON October 16, 2017

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

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

Like Blake_Pusztai likes this
Santosh Maurya June 12, 2018

I made minor changes and it worked for me..

{{#changelog.status}}{{fromString}} - {{toString}}{{/}}

Equals

Open - In Progress

Anna March 9, 2022

For some reason it doesn't work for me in Data Center 7.4 version ?

0 votes
Samuel Wilkinson June 28, 2019

I found this looking for ways to find the most recent Status, but another way to solve the above use case is to register a Webhook in Jira settings and add it to that transition as a post function. 

0 votes
Sebastián Delmastro October 4, 2017

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
TAGS
AUG Leaders

Atlassian Community Events