Forums

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

Issue option Disable in Create issue

Rajesh Ramankutty
Contributor
November 12, 2018

Hi,

We want to hide a perticular issue type from create isuue screen for a particular project using javascript and this issue type is bieng used in other project also and we need this issue type as well in this project for searching old issues by using issue navigatior that means issuetype shoould be present in issue navigetor and not in create screen.

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 13, 2018

While you can probably find an existing javascript on our site to do this, I would also recommend checking out Matthew's post over on https://community.atlassian.com/t5/Jira-questions/Can-I-block-an-issue-type-from-being-creatable-but-still-have-it/qaq-p/94191

He explains that you could create a validator on the workflow to prevent users from creating new issues of those types.  Since each issue type in a project can have a different workflow, you could create a separate workflow for these other issue types in order to restrict which users could create issues of this type in this project.   By adding a permission validator and selecting a role such as Administer Projects you could limit only users in that role to creating these new issue types.  And this would still allow those old issue types to remain in that project.

That said, I understand if you would prefer to hide these values instead.  Our site has a number of users that have requested this before, I would recommend checking out these links:

https://community.atlassian.com/t5/Jira-questions/Disable-issue-type-javascript/qaq-p/146604

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-disable-an-issueType-in-the-dropdown-list-on-issue/qaq-p/522746

One thing to note:  Even if you create a javascript to hide this option from users, it would still be possible to create issues of that type via the REST API in Jira.   Which is why I would still recommend looking into the option to modify the workflows for those issue types in that project to have this validator.  This way, even REST calls can't be used to create issues of that type in that project.

Rajesh Ramankutty
Contributor
November 13, 2018

Thank you sir i will check this.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events