How can I access transition properties in Jira Automation

Layton Everson March 31, 2021

I have a scenario where I want to run an automation rule based on a transition... the status doesn't change so I am trying to access transition properties to identify the transition the user clicked. How can I do this? 

1 answer

1 vote
Ravi Sagar _Sparxsys_
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.
March 31, 2021

Hi @Layton Everson 

Interesting question. For self transitions (I guess that's what you have) you can configure a rule to trigger on Transition where from and to status are same. Jira's issue history will still have this information which you are access using this smart value.

{{changelog}}

This will give you something like this.

{status=[ChangeItemBean{field='status', fieldType='null', from='3', fromString='In Progress', to='3', toString='In Progress'}]}

I hope it helps. Let me know if that's what you were looking for.

Ravi 

Layton Everson April 1, 2021

Is there a way to see the output of {{changelog}} ?

Ravi Sagar _Sparxsys_
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.
April 1, 2021

Just use it in the comment or log. I shared above the output of {{changelog}}

Like Layton Everson likes this
Layton Everson April 1, 2021

And you are saying that the change log will contain the transition properties? I'll check it out. 

Harsh
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 27, 2024

Hi @Ravi Sagar _Sparxsys_ 

I have a similar question. 

I have 2 self loop from a status(Done), which performs different action when triggered.
Is there a way in automation to perform the same action by checking the transition name.

Currently I have a script in post function, which perform the action but I would like to achieve the same via automation and not script.

Any help would be appreciated.

Thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events