You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi Atlassian Jira Community Developers,
Do you guys know if there is a Jira API that can allow me to pull all the Solutions, Functional components and Components in Jira. For instance, when I create an issue in Jira under a Project and I choose the issue type, further down the form there are mandatory fields like Solution, Functional components and Components I need to populate. All these fields have a drop down list of choices (as shown in the attached screenshots) that I would like to export out of Jira and import into ServiceNow so that when the ServiceNow to Jira integration runs it does not fail because of ServiceNow sending an solution to Jira that does not exist in Jira. Basically what I am trying to do here is to sync the data in these choice fields so that they exist in both platforms and I think the only way to do so is to use an API if there is one.
Kindly advise please.
Hi @jmweli and thanks for your question.
After creating a issue, do you want to retrieve the values in the 'components' or 'Functional components' fields within the request, or do you want to retrieve the available options in these two fields?
I would like to retrieve the available options in these two fields. For instance I have a Jira API that I am using to retrieve all available projects in Jira and store them in a ServiceNow table. Also I can import all the issue types for each project in Jira and store that data in ServiceNow using an API. What I am asking here is if there is an API that would let me do the same with functional components and components in Jira, pull all of them and store that data in ServiceNow to reduce integration errors when ServiceNow calls Jira.
Hi @jmweli thank you for your response.
After obtaining the contextId value, you can send a request to retrieve the customfield values using
For example, a sample REST API request would be
Hope this helps. If the issue is resolved, you can vote and accepted for this comment.