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

Accepted Answer
0 votes

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,333 views 2 7
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