Smartvalue for transition name

Jakob KN
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.
May 22, 2020

Hi Community, 

I'm setting up a Slack notification using Automation for Jira which triggers on transitions, I would like to include the name of the trigger transition, but can't seem to find a smartvalue for this in Codebarrels documentation. 

Is there a smartvalue available for transition names?

6 answers

1 accepted

0 votes
Answer accepted
Jakob KN
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.
June 30, 2020

After being in contact with Atlassian support regarding this, it turns out that including Transition names as smart values is not an option, as mentioned in their reply:

"I just wanted to let you know that the Automation Development team came back to us, and unfortunately they confirmed that there is no way to fetch the name of the transition."

Bill Sheboy
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.
June 30, 2020

Thanks, @Jakob KN for the follow-up.  If you believe this would be a valuable capability, please consider adding it as a suggestion for Atlassian to consider.  Thanks!

Like # people like this
0 votes
Margaret Boisvert
Contributor
February 14, 2024

You can now user {{transition.transition_name}} in Jira Cloud Automation

Darryl Lee March 18, 2024

Hi I realize this is necroposting, but... I'm not finding this to exist. 

I tried Logging {{transition.transition_name}} as well as {{transition}} and both come up blank.

@Margaret Boisvert you have a rule that uses this?

Margaret Boisvert
Contributor
June 20, 2024

I was mistaken on this.  It does not work :(

Margaret Boisvert
Contributor
October 1, 2024

{{transition.transition_name}} can be used in a Jira expression Nunjucks script.  When I saw it there, I thought it would work in Automation as well but it does not

0 votes
Luis Plaza
Contributor
November 8, 2021

You may try to use changelog smartvalue that gives you as result when you transition from TO DO to IN ANALYSYS something like this:

Captura de pantalla de 2021-11-08 16-09-02.png

0 votes
Luis Plaza
Contributor
November 8, 2021

it will not give you the transition but with some string processing you can evaluate the target status

0 votes
Martin Cleaver
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 10, 2021

Is there a Jira issue tracking this?

@Gareth Cantrellmaybe you know? Or of a workaround using Scriptrunner?

Martin Cleaver
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 10, 2021

At the moment on DC, I just make custom events, and emit those on postfunctions.

The downside is one new event for every type of thing I want to bridge from a workflow to a rule.

A more general solution would be to capture a generic event (maybe Generic Event or maybe a new general "A4J Transition Event"), extract in ScriptRunner using listener, expose into a new SmartValue using scriptrunner, filter on transition name.

0 votes
Bill Sheboy
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.
June 25, 2020

Hi @Jakob KN 

I did not find the name of the transition in any of the smart value documentation from Atlassian.  You could try to find a representative issue which was transitioned, and then use the REST API to find if such a smart value exists.  Here is the how-to guide for that technique:

https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

If you learn the smart value, please post the answer in this thread.  Thanks!

Best regards,

Bill

Jakob KN
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.
June 30, 2020

Hi Bill, it turns out that this isn't possible, unfortunately. 

Suggest an answer

Log in or Sign up to answer