JIRA server, Restrict ticket creation for jira-user group, but wait, there is more....

Nari Man
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.
October 10, 2018

I want anyone who is in jira-user and has no Project role to just see Bug ticket type in the Create issue screen. 

I know how to restrict issue type creation in workflow but that still allows the user who is restricted to see the issue type in the create issue screen. This leaves a negative user experience as they will type up the ticket and after clicking submit will figure out that they are blocked from creating that ticket type. 

 

Anyone know how to restrict it so user does not see that issue type in the create screen at all?

 

4 answers

2 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.
October 10, 2018

Hello,

You could also implement this functionality with the Power Scripts add-on:

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

You could write a condition with a script like this:

if (!isUserInRole(currentUser(), project, "Developers") && userInGroup("jira-users", currentUser())) {
return true;
}
return false;

You can find more info about conditions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Writingvalidators,postfunctions,andconditions

0 votes
Nari Man
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.
October 16, 2018

thank you all for your responses. I will check out the Workflow enhancer and Power scripts add-on to see which one does what I need. 

0 votes
Jimmy Van (GLiNTECH)
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.
October 10, 2018

Hi Bharath, do you have ScriptRunner?

Looks very similar to:

https://community.atlassian.com/t5/Jira-questions/Restricting-issue-creation-of-certain-Issue-Types-based-on-user/qaq-p/701283

Otherwise, have you considered using an Issue Collector? While you may not be able to collect all the custom fields you're after, it is much simpler for the user. Read more here: https://confluence.atlassian.com/adminjiraserver071/using-the-issue-collector-802592637.html

0 votes
Bharath Kumar Kappala
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.
October 10, 2018

With Workflow Enhancer for Jira you can create a Universal Validator that checks [groups] user is in, evaluating to true or showing a custom error message to user.

 

Here is the link for the add-on - https://marketplace.atlassian.com/apps/575829/workflow-enhancer-for-jira?hosting=server&tab=overview

Nari Man
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.
October 10, 2018

I appreciate the response. I have seen this before that issuetypes are not shown to certain users on create issue screen and am looking for that solution. 

Suggest an answer

Log in or Sign up to answer