The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to get Organization ID's associated with a Request via API?

Lars Morten Nygaard
Contributor
January 22, 2024

Is there way to get the assosiated OrganizationID(s) of a Service Management request using the Service Management og the regular Jira API.

Thanks in advance.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Kai Becker
Community Champion
January 23, 2024

Hi @Lars Morten Nygaard 

thanks for your question.

Every issue has this information stored. Easiest way to access it:

  • Open issue via REST using https://<sitename>.atlassian.net/rest/api/3/issue/KEY-123
  • search for organisation (customfield_xxxxx), probably 10002
  • the id should be located in the json object

Alternatively it should also be accessible via smart value like this: {{issue.Organizations.first.id}}

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events