JIRA.Issue.getIssueId() doesn't work for Next-Gen based projects

Nikita_Ishkov August 27, 2019

Unfortunately API doesn't work

JIRA.Issue.getIssueId() - returns null (for issue page view/ quick issue view modal)
JIRA.Issue.getIssueKey() - returns null (for issue page view/ quick issue view modal)

1 answer

0 votes
张驰 August 30, 2019

I have the same problem.

I found that when page has loaded, print "JIRA.Issue.getIssueKey()" in console and then i can return the correct issueKey.

Maybe the timing are different between issue page and next-gen page.

Nikita_Ishkov August 30, 2019

it's always null for me, not depends that page loaded or loading
not depends on page opened directly by link or through navigation

张驰 October 28, 2019

Now  I found  JIRA.Issue.getIssueKey() is not work in some page, so I use Meta.get("issue-key") instead. 

Suggest an answer

Log in or Sign up to answer