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,553,378
Community Members
 
Community Events
184
Community Groups

How to get Jira issue id from issue key

Zephyr apis accept issueId. How to we programmatically get the corresponding issueId for an issueKey?

If we have to use combination of Jira and Zephyr apis, then how do we authenticate programmatically for Jira api calls like we do for Zephyr through JWT.

 

2 answers

2 accepted

2 votes
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 18, 2019

What platform are you on?

  1. Jira server
    • You can call <JIRA_BASE_URL>/rest/api/2/issue/{issueIdOrKey}
      • This api accept issue id or key as path parameter.
    • For authentication on server platform you have two options
      1. BasicAuth (base64 encoded username and password)
      2. oAuth
    • You can read more about it here https://docs.atlassian.com/software/jira/docs/api/REST/8.3.2/
  2. Jira Cloud
    • You can call <SITE_URL>/rest/api/3/issue/{idOrKey}
      • similar to server this api also accept issue id or key as path parameter
    • For authentication on cloud platform you have two options
      • BasicAuth with API Key (base64 encoded email and api key)
      • oAuth 2.0
    • You can read more about this here https://developer.atlassian.com/cloud/jira/platform/rest/v3/

I am getting 404 if I try GET/rest/api/2/issue/{issueIdOrKey} even though the issue exists for that key. Any help?

HI @DPKJ There is no issue.id for Jira Cloud as Smart Value

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Although, following this doc https://confluence.atlassian.com/automation/find-the-smart-value-for-a-field-993924665.html, you can use the dot notation for whichever issue field ....

So now we can access Xray GraphQL API

https://xray.cloud.getxray.app/doc/graphql/addtestsetstotest.doc.html

 

Daniel Mende
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 26, 2023

@DevajeetMicrosofttry /rest/api/3/issue/{issueIdOrKey}

0 votes
Answer accepted
Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 18, 2019 • edited

Hi @Sarangadhar.Sahani ,

You can get it using REST API 

 /rest/api/2/issue/{issueIdOrKey}

https://community.atlassian.com/t5/Jira-questions/How-I-get-issue-id-of-particular-issue-in-Jira-Service-Desk/qaq-p/977378

 

If you want to get using JAVA API . You can user IssueMangaer class. From this you can get issue object using issuekey.

Thank you @Sreenivasaraju P can you help me how the authentication work for calling  atlassian apis? Does it work through JWT like Zephyr?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events