how to get issueId for a given task ?

Hi everyone!

Does anybody know how to get issueId for a given task ? Suppose I've created a new task titled in the following manner ("title-4343" ). Number has not been added by myself. Practice shows that "4343" is not an issueId of the task ( I wish it would be )... So, how could I know the exact issueId for created task ?

Very appreciate your attention!

Thanks a lot!

3 answers

1 accepted

Hello Sergey Zaystsev,

You view the Page Source from the browser and find something like

<li><a id="key-val" rel="512281" href="/browse/title-4343">title-4343</a></li>

in that 512281 like number is the id for the issue title-4343.

thank you, it works! But now I do think on how to automate this in order to use such approach in programme code... Or may be there is another way to find _id_ in a more programmable way

Programmatically you use issue object to get id and based on the scenario you can get the issue object.

Refer document and use as issue.getId()

hi Sergey Zaystsev,

do you get the issue id ?

Yes, I got it in two ways - first as you described above, second - rest/api/2/issue/{issueTitleHere} and read the response ( json ). IssueId is also available there.

Currently there is another thing which bothers me much more - 212929 ticket... Can you give some guidence on that ?

Sergey Zaytsev,

appreciated if you accept as an answer for this question. Also I don't have much idea about Zephyrs plugin you mentioned above.

May not be the easiest or most direct way to get there, but here is what I do (in Chrome):

  1. View Source (F12)
  2. Right Click the Issue Key and select Inspect - This highlights the needed row in the Source view
  3. Note the number in the (rel="12345") entry.

See attached.

JIRA - Finding Field ID for a specific Issue.png

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,770 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot