Forums

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

Possibility to restrict certain Custom Field Value based on users

Mahdi Mohammadnejad January 18, 2023

Hi

I have 5 groups of users that they can create issue. In the creation form there is a field that called "task category" with 4 values.

Now i want restric values of this field for those group. For example group 1 and 2 just see 1st value in task category, group 3 and 4 see 2nd value and 5th group see 3rd and 4th value in task category.

Could you please help me to do it.

2 answers

2 accepted

1 vote
Answer accepted
sekhar reddy
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 19, 2023

Hi @Mahdi Mohammadnejad 

If you don't have script runner plugin as a work around you can create a new Issue types with "task category" values and create a separate workflows for each Issue type. Add a condition that only particular group can create this Issue type in the workflow create transition.

 

Mahdi Mohammadnejad January 19, 2023

Thanks for your answer

1 vote
Answer accepted
Joe Pitt
Community Champion
January 18, 2023

You can't do it out of the box. You would need to have a script running at creation time. I suggest you search for scripting at creation. 

Mahdi Mohammadnejad January 18, 2023

Do you mean using plugin like Scriptrunner for jira?

Joe Pitt
Community Champion
January 18, 2023

Yes

Mahdi Mohammadnejad January 19, 2023

Thanks a lot

Karl Samson
Contributor
September 5, 2024

Hi Joe, I'm interested in restricting a custom field option to only members in a certain group. How would I do this using ScriptRunner, Field Behaviours?? 

Or, could you suggest a script that might do this?

 

Thanks.

Suggest an answer

Log in or Sign up to answer