Forums

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

How to get IssueType in JavaScript ?

Mik
Contributor
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
Contributor
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
Contributor
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
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events