Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation REST API question

Christa Meck March 26, 2025

Please read this carefully:  I am asking a question about the Jira Automation REST API (allegedly 

https://developer.atlassian.com/cloud/automation/rest/api-group-rest/#api-group-rest) .   

I am NOT ASKING  --  NOT ASKING -- How to incorporate an API call in a Jira Automation.

 

Anyone on Jira Cloud using Postman (or command line cURLs) able to successfully search for templates using GET or POST ?  I'm using Postman with all my similar setup for Jira and Confluence REST goodness.  I am a regular API user so I don't think we need to diagnose my authentication or anything like that but it's not out of the question cause headers and such... But anyways...

Here's the URL I am trying:

<mySiteURL>/automation/public/jira/<myJiraCloudOrgID>/rest/v1/template/search

 

This returns: 404 not found

I'm not looking for much from this super basic API.  I'd really just love to be able to grab the JSON for a rule I wrote to use as reference.

Thanks!

- Christa

4 answers

1 accepted

1 vote
Answer accepted
Prince Nyeche
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 2, 2025

Hi @Christa Meck 

The document mentions to use <cloudId> and not the <OrgId> I believe that's why you're getting the 404 error because the resource doesn't exist. This document shows how you can retrieve your site cloud ID

Christa Meck April 2, 2025

@Prince Nyeche You, my friend, are a genius!

Using the document above to obtain my site's <cloudId>, and re-reading the API documentation I was eventually able to get it to work in Postman.  Here's the URL I used:

https://api.atlassian.com/automation/public/jira/<cloudId>/rest/v1/template/search

 

Note: The url is indeed https://api.atlassian.com/  Not the URL for your product access.

Note #2:  That's atlassian.COM not atlassian.NET

 

FYI: @Bill Sheboy@Tim Perrault 

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.
April 2, 2025

I am guessing that endpoint's usage is license level specific as it still does not work for a free license level when I just tried it.

Christa Meck April 3, 2025

Odd.  It worked for me on my personal Free tier.  

The original question was for a Premium tier Jira so that's a good call out!

1 vote
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.
March 26, 2025

Hi @Christa Meck 

If I understand your question, there is no public REST API to access automation rules (or their audit logs) yet: https://jira.atlassian.com/browse/AUTO-51

Anything you may see posted in the community about people "discovering" such endpoints is likely to be unsupported and undocumented.

Kind regards,
Bill

0 votes
Christa Meck March 26, 2025

If there is no public API then why does this Atlassian created and managed documentation exist?  https://developer.atlassian.com/cloud/automation/rest/api-group-rest/#api-group-rest

 

Christa Meck March 26, 2025
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.
March 26, 2025

Well, I have never seen that documentation page before.  And, none of them worked when I did a quick test (including the simple search with no params)...so perhaps they are not publicly available.

0 votes
Tim Perrault
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 26, 2025

Hi @Christa Meck 

 

You can export your automation rules to a JSON file, but as @Bill Sheboy has stated there is no public REST API yet.

Export your automation rules to a JSON file
Jira automation provides a quick way to export all your automation data into one file.

In Jira settings, select System > Automation rules. You’ll be navigated to the global Automation screen.

In the top right corner, select … > Export rules. This will download a JSON file containing all global and project-scoped automation rules.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events