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?
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."
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can now user {{transition.transition_name}} in Jira Cloud Automation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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.
{{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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may try to use changelog smartvalue that gives you as result when you transition from TO DO to IN ANALYSYS something like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it will not give you the transition but with some string processing you can evaluate the target status
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a Jira issue tracking this?
@Gareth Cantrellmaybe you know? Or of a workaround using Scriptrunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill, it turns out that this isn't possible, unfortunately.
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.