Forums

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

What is the best way to retire an issue type from an active project?

esinclair
Contributor
September 24, 2015

We have issue types we no longer need to use in active projects and would like to remove them from the Create Issue options while maintaining historical data in the project.  What is the best way to stop users from creating new issues in this issue type while still using the project for other issue types?

 

4 answers

1 accepted

2 votes
Answer accepted
Nic Brough -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.
September 24, 2015

There's no "retire" function. 

You'll be able to find some stuff about playing javascript tricks to remove it from certain screens, but there's plenty of ways around those tricks (using REST, changing the issue type later, or other create methods provided by addons)

Your only real options are to rename it to something to discourage users using it, move the issues out to another archive type project and remove the issue type from the project's issue type scheme, or put in validators that can't be passed.

esinclair
Contributor
September 24, 2015

Thanks! We have used the rename trick as well.

2 votes
Sten Sundelin
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.
September 24, 2015

We have added a validation rather than post-function, but that has the same problem that the user is not informed until after they have already entered (potentially a lot of) data.

Here's another option discussed:

https://answers.atlassian.com/questions/17901678

 

esinclair
Contributor
September 24, 2015

Thank you!

2 votes
Deniz Oğuz - The Starware
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.
September 24, 2015

You can create a new workflow only associated with that project and add a post function to create transition that will cause operation to fail. You can return an error message that explains issue type is not valid for this project anymore.

esinclair
Contributor
September 24, 2015

Thanks for your answer!

MattS
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.
September 24, 2015

post function or validator?

Nic Brough -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.
September 24, 2015

You could use either, but a post-function won't give a message back to the user and it's quite hard to make one actually stop the transition. You need to deliberately code something that will crash rather than just fail - things like trying to update non-existent fields will just fail and carry on, rather than blocking the transition (You can tell I've been here before, right? ;-) )

1 vote
esinclair
Contributor
September 24, 2015

Thank you everyone.  The way we have managed this scenario to date is to rename the issue type as noted by Nic.  Then we add a message to the create screen with info about the retirement and remove all other fields.  We leave one of the removed fields as required so users are unable to complete the create function.

I was hoping there might be a better way now that we were unaware of. 

Thank you all for your suggestions.

Suggest an answer

Log in or Sign up to answer