Hide ALL issue types CREATE screen except ONE and EDIT screen for ALL issues types for ALL users

vcatl2020 June 15, 2020

Our new business process includes customers submitting Jira tickets goes to a single service desk lead then based on the ticket ask it gets routed to right business area. To prevent Jira users creating or submitting tickets directly to other business areas, we are looking to find ways for restricting/hiding all issue types from a project. Once thoroughly vetted by SD lead the ticket shows up in business area dashboard and they take it from there to issue resolution or request fulfillment.

Please advise if this is possible to configure in Jira using native functionality or through recommended add-ons. If this NOT possible in either ways, kindly suggest a solution that could fit and align to our business process. Thank You!

1 answer

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.
June 15, 2020

Hi @vcatl2020 

To start with go to the permission scheme of your project and modify the "Create Issues" permission.

Screenshot 2020-06-15 at 16.21.35.png

Give this permission to only selective users, role or group.

I hope it helps.

Ravi

vcatl2020 June 15, 2020

Thanks Ravi_Sagar_Adaptavist for your prompt response and my apologies for the incomplete information posted above.

Correction: Hide all issue types in a project except for one issue type create screen, where it should be the only ONE that should be visible to all users. Once submitted and vetted by the lead, it will be moved to the right business area associated issue type, where business users have the access to edit screen only.

Like Ravi Sagar _Sparxsys_ likes this
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.
June 15, 2020

Oh ok, in that case you would need an app like ScriptRunner for Jira. You can evaluate it and try this script.

This script above can help you restrict the issue types.

Let me know if this works for you.

Ravi

vcatl2020 June 15, 2020

I did reviewed this post earlier prior to posting this ask here but did not get a chance to put this to test on my side. Now that I got the same suggested solution, will give it a shot and respond with my feedback on this in a day or two. Thanks again Ravi!!

Like Ravi Sagar _Sparxsys_ likes this
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.
June 18, 2020

No problem. I am glad it was useful.

vcatl2020 June 23, 2020

Permission scheme did not worked well in our scenario but the add-on did the trick so far.

Mohammed Monir November 13, 2022

Is it possible to hide issuetype in Jira Cloud since behavior is now available for cloud? 

Like # people like this
Mohammed Monir April 24, 2024

It works in Cloud behavior.

 

const issueTypeField = getFieldById("issuetype")

const user = await makeRequest("/rest/api/2/myself");
const { accountId } = user.body;
const userGroups= await makeRequest("/rest/api/2/user/groups?accountId=" + accountId);
const groupNames = userGroups.body.map(({ name }) => name);

const role = "Developers";

if (groupNames.includes(role)) {
issueTypeField.setOptionsVisibility(["10255", "10256"], false)
}

Suggest an answer

Log in or Sign up to answer