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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

jira automation - get started

Hi All,

during the last couple of days, i created some jira automation rules, so i have some questions.

Is there any more comfortable way, than using the builtin debugger? maybe a vs code extensions with syntax highlighting and syntax checking and help and stuff? 

is there a nice way to share code snippets with the community?

Is there a way to participate in improving the existing documentation? 

Thanks Oli

2 answers

1 accepted

0 votes
Answer accepted

I'm afraid the built-in editor is the only option at the moment.

Really good idea for an IDE plugin though!

Hi @Oliver Berger 

Yes, Nic's ideas:

Here is the Atlassian library of example automation rules, and I have seen their product people posting about perhaps having a similar library for the community members to share rules.  No timelines were noted on doing that.

Until then...often community members add posts/discussions to share ideas, like these ones:

For the last question about participating in improving documentation, I recommend when you find a page with problems, use the "Provide feedback on this article" link at the bottom to offer suggestions.  I find the team responds well when specific things are raised.

And, there are open suggestions to make the documentation more comprehensive, perhaps like the REST API information.  Here is a suggestion I submitted along those lines:

Kind regards,

Like Curt Holley likes this

Thanks @Nic Brough -Adaptavist-@Bill Sheboy for your answers.

I think, i do not need to loose any words on the quality of the built-in editor.

The template library is "nice", but if you are dealing with smart values, it is not very helpful. 

Something like this would be easy to use from my PoV. But a common tag is the key to make this work.

Also added a vote to your issue, and provided some feedback on the page. Maybe someday there will be an "else" mentioned in the "if" documentation...

Cheers Oli

0 votes
Darryl Lee Community Leader Mar 25, 2022

Hi @Oliver Berger - I've been meaning to write something up about my experiences exporting rules as JSON and then treating them as code.

As I wrote here:

  • Rules are formatted as JSON, which is a tool for storing/presenting data in a human-readable format.
  • There are lots of tools/libraries for parsing/manipulating JSON files.

Minimally, if you just run your rule(s) through jq to apply some light formatting, it's actually quite manageable to edit the JSON in any code editor. (I actually went so far as to use a templating system to programmatically create rules where a Checkbox Field's options were mapped to specific Assignees.)

Unfortunately actually testing and debugging manually hacked JSON rules requires importing the rule back into Jira and running it.

For particularly complex rules, you could check the formatted JSON into a source control system like Bitbucket, and even if you use the editor, there's still value in exporting again and checking-in the JSON to track changes, etc.

I've *ALMOST* found an endpoint for exporting all of the rules:

(That's from looking at the Export link from the menu here:

So with that in hand, assuming you could get an API key that Atlassian would accept, you might be able to automate a mechanism to "snapshot" your rules on demand, or on a schedule, and then check those into a repo for tracking.

Darryl Lee Community Leader Mar 26, 2022
Like # people like this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events