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
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
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.