We can't use global automations due to admin restrictions so to work between projects, we use webhooks probably more than it was ever intended. (Just for context.)
I have an automation that is triggered by an incoming webhook. Part of that automation needs data from another Jira project so I can't get the data by doing something like {{triggerIssue.attribute}}.
One of the devs figured out how to grab data from GitLab via the REST API. (Returns the contents of a specified file.) I'm wondering if Jira has something similar. My googling is returning info, but I'm mostly confused by it.
I basically want to send a "GET" issue.attribute to a particular project and have it return the desired info. Somehow have the URL specify the project, issue, and attribute I'm interested in.
Hi @Yokai-FTW
Jira has an official REST API with many endpoints to get information. You can view the docs around the project related endpoints here. This one is specifically about getting the details for a given project: {baseUrl}/rest/api/2/project/{projectKey}.
Here's an example which you can call in your browser for the JSDSERVER project on jira.atlassian.com.
In order to call it from an Automation, you'd need to use the send web request action. You need to provide the url and also some form of authentication. You can set a basic authentication header with a username and API token.
Hope this helps,
Matthias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.