Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,473
Community Members
 
Community Events
184
Community Groups

Run automation rule from transition

Seems like one of the first things that Jira should support is running an automation rule from a transition, but I can't seem to figure out how to do it.

I believe that I could do it the following way, but it seems like a total hack:

1) Create an automation rule which is triggered from an external webhook

2) Add a webhook to our system that points to the automation rules webhook

3) In the post function of the transition, run an "external webhook", which just points to our automation webhook. I'm not sure if the hooks are compatible though.

Thoughts?

2 answers

0 votes
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 26, 2021 • edited

Hi @Benjamin Peikes

In automation page, there is trigger called "Issue Transitioned". Selecting from and to statuses should solve your issue. Selecting a specific transition (with id) is not supported.

Thats exactly the issue. If you have a transition which goes from and to the same status, ie what is now called an “action” in the UI, this doesnt work.

I dont understand how Atlassian implemented Automation, and didnt make it available from transitions.

Like # people like this

it is truly a pain as you can have several transition from an to the same statuses... so...

Like # people like this

Have there been any updates to this?  Seems useful to have

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 24, 2021

Hi Benjamin,

What do you mean by a transition? When an issue transition from one status to another? 

Yes and no. We have “transitions” which map from any status back to the same status. The fact that Automation cant be associated with a transition is pretty ridiculous.

Like Dimitrios Moschovitis likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 26, 2021

Well, Automation certainly CAN be associated with a transition. You can create a rule with a trigger for Issue Transitioned and select the to and from statuses if you like. 

The issue is that it cant be associated with a specific transition, it can be associated with a start status and an end status, so if you have two “transitions” from one state to another, you can’t have the automation rule run on one of them.

I dont understand why Atlassian didnt make running an automation rule as an option for Post functions in a workflow.

Like Dimitrios Moschovitis likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 03, 2021

I think they are aware of that situation and probably have it in their backlog to make the fix. First, realized that Atlassian didn't create the app - they acquired it in the last couple of years and their will be things to work through. 

Second, what I do in those cases is set a value of a custom field that can then be used to trigger the rule instead of the actual transition. Should I have to do that? No. Does it work? Yes. 

I hope that helps a little. 

As a workaround, you can also use a custom event in Jira. 

That means:

  • Create a custom event globally.
  • Let your transition fire this custom event in its post functions.
  • Use the event trigger in the Automation and listen to your custom event.

That should work the same way as listening to a transition, which unfortunately still doesn't exist in Automation.

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jul 27, 2022

@Benjamin Peikes  - Any update here?

Not that I know of. Maybe submit a formal request for the feature. If you do, and they give you a link to an improvement that we can vote on, I’d be happy to add my vote.

That said, I wouldnt hold my breath, as I dont think Atlassian has classic workflow improvements on their priority list.

Hi,

I had a similar request and maybe it helps you. We wanted to implement shortcut buttons that send out different comments when used. By using several transitions to the state itself you get the Actions Menu as Benjamin Peikes already mentioned. However differentiating the transition was my problem as well. I tried Edgar Kellermann's solution with the generic event but could not solve the last part in the automation. 

The current solution we use is making for each Button/Transition, as in the actions menu, an automation rule that posts e.g., wished comment directly on the issue and the trigger is the Manual trigger. In the Issue View under Automations you can select wished automation to the thing you want (in my case it's a comment, could be also a transition,... you name it). The manual trigger can also restrict which user groups can trigger this automation

Screenshot from 2022-10-12 13-44-36.pngScreenshot from 2022-10-12 13-45-48.pngScreenshot from 2022-10-12 13-46-40.png

cheers

Suggest an answer

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

Atlassian Community Events