Forums

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

How get all choices from custom field(single choice) value

Razmik Mikayelyan February 10, 2022

i have custom field Positions(single choice) and custom field Position Name(text field) when creating a task i want to have a ScriptRunner validator that will match the text in Position Name with those choice values ​​in Positions if there is such a Position in Positions then the validator will work if no then it won't

how can I get all options from Positions and compare them to the text that was in Position Name

1 answer

0 votes
Pramodh M
Community Champion
February 10, 2022

Hi @Razmik Mikayelyan 

What's the text?

Use the below code as an example and let me know if it works

https://community.atlassian.com/t5/Jira-questions/How-to-show-a-new-field-based-on-another-custom-field-value/qaq-p/1940007

Thanks,

Pramodh

Suggest an answer

Log in or Sign up to answer