How to disable IssueType field on Create Issue Screen?

Hi,all!

How to disable IssueType field on Create Issue Screen?

I tried to do it using javascript, but this field is too stubborn.

jQuery('#issuetype-single-select input, #issuetype-single-select span').unbind()
jQuery('#issuetype-field').unbind()

3 answers

1 accepted

i think you used javascript and it is not working when you change issue type, what i gusss correct then check the following post

https://answers.atlassian.com/questions/47843/strange-javascript-problem-in-create-screen

oh, I guess it's solution of global problem.

Thanks!!

is it correct what i guessed? is it helped my answer?

Yeah :)

Now I trying to realize it.

Can you explain a bit more what you are trying to achieve, I mean the end goal?

0 vote

You can't "disable issue type field". The issue type is mandatory, Jira cannot work without it. If you disable it, you won't be able to create ANY issues, which would make your Jira useless.

I think you need to explain the requirement in more detail, as it's not clear what you really mean.

It's still not clear, where are these A field and B field placed? Do you mean you have customized the create issue screen itself?

oh, no disable,make READ-only I mean

Ok, I have 2 fields:

1. Afield - select list

2. Bfield - userpick, Bfield's value depends on Afield's value, and it's realized using external json service.

It works well, but this service doesn't work when I change issuetype on Create Issue Screen.

That's why I decided to make this field readonly.

Ok, but that still means you will only be able to create one issue type? If that's correct, then you can just change your issue type scheme so that there is only one issue type available and the issuetype field won't be able to change.

I suspect that's still not what you really want though - you really want to be debugging your code so that it works when the issue type is changed on the create screen. I think you need to explain what you've customised on the screen and how - that needs debugging, rather than trying to run off and fix it in a totally different way

No, I have 7 issue types, but I can choose necessary type on project's profile page.

Ok, then we can rule out using a single issue type.

So, we need to know what you've customised and where (removing the issue type selection is a bit of a pain, and very user-unfriendly, we should be fixing your code, not reducing functionality elsewhere)

Yes, it's very user-unfriendly, but I don't see another way so far.

I try to customise Issuetype on Create Issue Screen (from project's profile page and dashboard).

Kate,

I think you need to explain your requirement clearly. Reading from all the comments I just have a feeling you are trying to accomplish something simple.

You say you want to make the Issue Type selection read only, then why would you want to have 7 issue types?

If you want 7 Issue Types, what is the point making it read only?

You are trying to disable changing issue type selection because it is affecting your other two chained select custom fields that uses a json service?

You are trying to disable changing issue type selection because it is affecting your other two chained select custom fields that uses a json service? [exactly]

I don't have an idea why json service doesn't work while changing issue type.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

767 views 2 19
Join discussion

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