Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get URL to a created issue from API

Hey there, I am creating issues using API, however, I cannot find URL for created issues in the response body.

 

How can I get the URL for a created issue using API?

 

Thanks!

3 answers

Hi Zharkyn,

The Cloud Rest API documentation for issue creation shows that the issue key and URL are returned. Atlassian's example is below.

{
    "issues": [
        {
            "id": "10000",
            "key": "TST-24",
            "self": "http://www.example.com/jira/rest/api/2/issue/10000"
        },
        {
            "id": "10001",
            "key": "TST-25",
            "self": "http://www.example.com/jira/rest/api/2/issue/10001"
        }
    ],
    "errors": []}

 The id value is the issue ID, key value is the issue key, and the self value is the issue URL. Cheers!

0 votes
Daniel Ebers Community Leader Jan 16, 2021

Hi @Zharkyn Kassenov

in case it is still not working - could you probably post the response of your call here?
It then might be easier to dig in deeper.

Regards,
Daniel

0 votes

Hi @Joshua Sneed _ Contegix , @Daniel Ebers ,

Thank you for your replies. What I was actually after is URL that can be opened in a browser to navigate to the created issue. I only see API URL of the issue in the response. Sorry for not being clear in the question.

Daniel Ebers Community Leader Jan 17, 2021

Like Joshua showed there is the key as a response, this is the "dynamic" part of the URL, the rest is "static" like https://yourgreatsite.atlassian.net - the task would only be to concatenate your URL + the project key.

You mentioned you see only API URL in response key. I am unsure why - could you please show an anonymized output here?

Hi Zharkyn,

Plug the key into Jira's standard issue URL to access it in the UI. E.g. http://www.example.com/browse/${key}. Cheers!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you