Forums

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

How to restrict custom field drop down values based on system field issue types?

Puralasetty, Koteswara Rao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 21, 2024

We want to restrict custom field drop down values based on issue type system field value selection, We are using behaviour in our Jira cloud please suggest some working script.

 

 

1 answer

0 votes
Pavol Gočal
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 21, 2024

Hello,

you can use a new context for your custom field. Check this link.

For example, I created a custom context called "Restricted Context", which is applied for two issue types: Task and Bug for my project "Jedi Order" and have values:

  • Restricted Option 1
  • Restricted Option 2
  • Restricted Option 3

custom context.png

Pavol Gočal
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 21, 2024

Be aware, that when I want to edit this custom field value in the project (n my case Jedi Order), that has a custom context configured for a different issue type (the one, that the custom context does not include, for example - story) - the custom field will not appear there. 

custom field conext missing.png

Make sure to configure it correctly. 

Pavol Gočal
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 21, 2024

I just realize, that there is one restriction here: You can have only 1 context per project.

Another solution can be found here. And also this thread might be useful.

Suggest an answer

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

Atlassian Community Events