Forums

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

How can I prevent user from selecting a depreciated IssueType?

Pete P
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.
January 26, 2022

I have two service management projects that each contain the "Change" issue type.  Both projects are still in use, one of the projects (ICC) contains the old "Change" issues that are depreciated.  My users are fond of bypassing the customer portal and using the Jira "Create button" instead. I don't think I can remove the "Change" issue type from the issue type scheme if I have hundreds of issues without migrating them.  What is the best way to deal with this? 

 

Can I add some type of condition in the workflow of the ICC project that blocks creation of a specific IssueType.  I only want users to create "Change" issues in the RFC project.

Capture.PNG

3 answers

1 accepted

4 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.
January 26, 2022

There are some tricks you can use, but none of them work perfectly.

As Ravi says, you can do some stuff with Behaviours to stop the UI offering people the issue type you don't want them to create.  But it won't stop them changing the issue type with edit or move, it won't stop automations, scripts, post-functions, listeners, imports or external REST calls from creating them.

The other trick which will block everyone creating them (except import) is to have a separate workflow for that issue type, with an impossible validator on the create "transition" - something like "only allow this transition if the user can prove that 1 = 2"

But that still won't stop people moving issues from one type to the unwanted one.

Your only way that completely stops people using a defunct issue type is to remove it from the project, which means migrating issues of that type to another type.

Pete P
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.
January 26, 2022

Thanks @Nic Brough -Adaptavist- , @Alexander Kravchuk  & @Ravi Sagar _Sparxsys_  for all your suggestions and comments. 

0 votes
Alexander Kravchuk
Contributor
January 26, 2022

Hi @Pete P -- basically what Ravi said. The best way to go about it is to migrate all issues from one issue type to another. Other options could include adding validator to the "create" transition, adding some kind of automation rule to create "correct" change request and close original change request or removing all fields from "Create" screen for this issue type - but all of this is not the best UX. If you absolutely cannot migrate them to the new issue type, you can also consider introducing another project and moving them there for archival purposes and then decommission this issue type.

0 votes
Ravi Sagar _Sparxsys_
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.
January 26, 2022

Hi @Pete P 

Removing issue type from the scheme and migrating issues is the best option. If you have ScriptRunner for Jira then you can use Behaviours to hide that issue type. Using workflow validator can work but it is not a good user experience where the message is displayed after clicking a button to create the issue. 

I hope it helps.

Ravi

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.2
TAGS
AUG Leaders

Atlassian Community Events