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,558,022
Community Members
 
Community Events
184
Community Groups

Retrieve data from Jira project via webhook?

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.   

1 answer

1 accepted

0 votes
Answer accepted
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 11, 2023

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.

Suggest an answer

Log in or Sign up to answer