Forums

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

Script runner - How can I get the value of status field?

jose de jesus torres torres March 10, 2024

Hi guys, I'm starting to use the behaviours in scriptrunner, and I need to know how can I do the following:

I need the fields "customfield_ 10130", "customfield_ 10131" and "customfield_ 10132" to be required when the epic status is equal to "Analysis" and the custom field "Status F1" is equal to "In Process".

2 answers

2 accepted

1 vote
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
March 11, 2024

Hi Jose,

I can confirm that Behaviours in Jira Cloud it only supports the fields documented here per view, and the Status field or Epic Status fields are not currently supported. 

This means that you will not be able to achieve your use case with Behaviours as it will not be able to check the values of those fields.

You will be able to use Workflow validators, which use the Jira Expression Framework to write a validator to check that the status field has a specific value and that the other fields are not null.

We have some examples on the page here of how to use the Jira Expression Framework that may be useful in helping you achieve your requirements.

I hope this information helps.

Regards,

Kristian

jose de jesus torres torres March 11, 2024

Thanks Kristian

0 votes
Answer accepted
Marc - Devoteam
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.
March 11, 2024

Hi @jose de jesus torres torres 

Welcome to the community.

Related to your problem description, these are condition or validators to set in a workflow.

Behaviours is not able to validate statuses

I'm not an expert on the topic as well, but scanning the documentation, this is field based behaviour on issue, but not conditional

jose de jesus torres torres March 11, 2024

Thanks Marc

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