Can I block an issue type from being creatable but still have it viewable?

I need to stop the use of a particular ticket type but have the old tickets remain viewable for referance.

Is it possible to block creation for one type of ticket in a project?

2 answers

1 accepted

This widget could not be displayed.

Yes & you don't need any additional plugin to do it, just an edit to your workflow.

Go to the workflow for the issue type that you want to block creation. Go to the first state (open), then select the "Create" transition. This is the transition that is executed when the issue is created.

To stop an issue of this type being created, add a validator to the transition. I tend to use a Permission Validator. I then use a permission from the Permission Scheme that isn't being used by the project or the Project Admin project (you can generally trust your project admins...)

Add a validator that says the user must have this permission.

When they try & create an issue, the action will fail & they will get a permission error. Not the prettiest, but it works and it's simple.

Some similar questions here:

https://answers.atlassian.com/questions/28062/how-to-hide-a-particular-issue-type-for-particular-project-using-javascript

and how to hide the options using javascript (not 100% as they are still accessible from the remote API which is why you need the workflow validator)

https://answers.atlassian.com/questions/159034/hide-issue-type

https://answers.atlassian.com/questions/28062/how-to-hide-a-particular-issue-type-for-particular-project-using-javascript

This widget could not be displayed.
Timothy Chin Community Champion May 29, 2013

You would need some kind of validator in the create transition. You can create a custom validator using the Script Runner add-on:

https://jamieechlin.atlassian.net/wiki/display/GRV/Script+Runner

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

115 views 2 0
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