Forums

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

Limit Issue Types during Creation

Marc Jason Mutuc
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.
August 15, 2018

I'm using jira.permission.create.group on the workflow transition Create but it doesn't seem to work.

The goal is this, I have 10 Issue Types as follows:

IT01

IT02

IT03

IT04

IT05

IT06

IT07

IT08

IT09

IT10

But would like GROUP1 to only see IT01. How do I go about this?

1 answer

0 votes
Alexey Matveev
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.
August 15, 2018

Hello,

You would need an add-on for it. For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

There is a feature, called Live Fields. This feature can do actions on fields in the Create, Edit and Transistion screens. You can find more info about Live Fields here:

https://confluence.cprime.io/display/JJUPIN/Live+Fields

There is a similair guide to your requirements here:

https://confluence.cprime.io/display/TR/Forbidding+users+to+create+some+issue+types

In your case the script would look like this:


string[] allowedTypes = {"IT01"}; 
if( userInGroup("GROUP1", currentUser())) {
    lfAllowSelectOptions("issueType", allowedTypes);
}
Marc Jason Mutuc
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.
August 15, 2018

Errr... yeah... I don't think we can take on another add on. We have script runner though. I've just added a validation but would really like the issue list to be more precise and not have extras that the user cannot create.

Suggest an answer

Log in or Sign up to answer