Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Want to Restrict creation of Tickets based on Project Role

Hi All,

We want to Restrict creation of Tickets based on Project Role. Can anyone help on how to achieve this. Thanks in advance.

2 answers

0 votes
Floating electron
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.
May 9, 2024

Hi @Chetan Krishna Sai Naidu_Jira-Admin 

If you're open to using apps or already have one providing Jira expression-based validators/conditions, then I think it would be a good option.

For example, if you want only users with the 'Developers' project role to be able to create Story issues, add Jira Expression Validator to the Create transition with following settings:

user.getProjectRoles(issue.project).reduce(
(isAllowed, role) => isAllowed || ["Developers"].includes(role.name),
false
)

Above assumes that you have a separate workflow for the Story issue type.

If you don't have separate workflows, you could do following:

issue.issueType.name == "Story" 
? user.getProjectRoles(issue.project).reduce(
(isAllowed, role) => isAllowed || ["Developers"].includes(role.name),
false
)
: true

The described case can be addressed using any Jira expression-based validator available on the Atlassian marketplace.

I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira free app. 

I would appreciate it if you could give it a try.

Cheers

 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2024

Looks interesting 

Like Floating electron likes this
0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 7, 2024

Hi @Chetan Krishna Sai Naidu_Jira-Admin , are you using Company managed project? If so you can control this under project settings > permissions - create. Just specify the roles that can create.

Hi @Jack Brickey  Thank You for your response. Very Sorry for a little confusion here. I would like to allow only some specific role users to create some specific issuetype. for example, user's with BA role should only create Task issue type issue's only.

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 7, 2024

Ah, that is a different matter altogether then. You cannot do this natively so you would need an addon that could allow you to specify user permission within the Create transition/action of the workflow.

Hi @Jack Brickey

Thank you for your response, can you please suggest any addons you are aware of.

 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2024

Have a look at this post - Restrict-Issue-Type-Creation-for-Certain-Users 

also search the Marketplace for "workflow validator"

Thank You so much @Jack Brickey 

Like Jack Brickey likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events