How to get IssueType in JavaScript ?

Mik August 14, 2012

Hi Guys.

Maybee anyone know how to how to get IssueType in JavaScript ?

I am using JIRA 5.

My goal is modify Customfields depends on value in anoter one. I would like use onchange function for it, but my problem is I must call it only for one IssueType. ( I using this customfield for many IssueTypes).

Thanks a lot !

Regards

Mik

3 answers

2 votes
Renjith Pillai
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.
August 14, 2012
AJS.$("#type-val").find('img').eq(0).attr("alt");
Mik August 14, 2012

It's working! Thanks a lot !

1 vote
Jobin Kuruvilla [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.
August 14, 2012

Try AJS.$("#issuetype-field").val()

Mik August 14, 2012

Hi Jobin

Thanks for quick answer. Unfortunately it say: Undefined

Regards

Mik

0 votes
Basavaraj Nesargi February 9, 2017

var issuetype=AJS.$("#issue-create-issue-type").text();

Try the above script in latest JIRA version . (applicable on create issue JSP)

 

Suggest an answer

Log in or Sign up to answer