Forums

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

enable or disable custom- filed based on more details tabon jira

Inetinfo Inetinfo January 5, 2023

Need Groovy script to write on jira script runner for following case

 

Requirement
1)Having custom filed id(Filed_id_123)

this filed needs to change based on available options on more details tabs based on given screenshot img

example

 

when click on more details tab it showing 2 options

1) US1

2)UK 1

Requirement:

1)when the value is available "US1 or UK1" then custom filed id(Filed_id_123)) needs to disabled

2)when the value is other then "US1 or UK1" then custom filed id(Filed_id_123) needs to enabled

preconditions : This needs to work only for 2 screens (Scren1, screen 2) not for default screen

Also what kind of mechanism flow do we needs to use for all jira tickets of specific few projects

detail.png

1 answer

0 votes
Nic Brough -Adaptavist-
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 21, 2023

Have a look through https://docs.adaptavist.com/sr4js/latest/features/behaviours 

I am always tempted to start in the "examples" sub-section, but actually the tutorial shows you how to do show/hide with off-the-shelf functions.

If you do need to script it, https://library.adaptavist.com/entity/basics-behaviours-set-hidden is a good starting point.

Suggest an answer

Log in or Sign up to answer