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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

102 views 0 5
Read article

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