Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA is not defined error

Sahana Rama Hegde July 26, 2019

Hi,

I am writing the atlassian-express plugin using Node.js as the backend server. 

I had to get the current issue id in my issue navigation/project page.

When I add below code to get the Issue Id ,

var issueId = JIRA.Issue.getIssueId()

console.log("Issue Key: " + issueId);

I am getting the error saying "JIRA is not defined".

How to solve this error?

Thanks.

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2019

You have not included or imported a library that defines the JIRA object.

Sahana Rama Hegde July 26, 2019

Where to include the library? 

How to import it?

Thank you!!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2019

I have no idea, I don't know what you are doing or what JIRA library you are trying to call in your code!

My instinct is that you have copied and pasted this code without knowing what it is doing.  I would go back to where you got it from and read through to find out what libraries are in use.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events