Set field value based on another field value using Script runner cloud

Rama Krishna
Contributor
October 26, 2023

Hi here,

I would like set the field priority based on the Impact field that is selected during the issue creation(from customer portal). If Impact is High, Priority should be set as High and same way if Impact is Low, priortity should be set as Low.

I am very much new to this scriptrunner scripts. somehow I gathered this which is not working for me, can someone help?

FYI this is on Jira cloud

 

const changedField = getChangeField() ;

if(changedField.getName () === 'Impact') {

const ImpactName = changedField.getValue().name.toString();

if (ImpactName === "High") {
getFieldById('Priority').FieldSetValue("High")

}

}

1 answer

0 votes
Bobby Bailey
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.
October 27, 2023

Hi @Rama Krishna , 

Unfortunately you are unable to create Behaviours that are applied to Jira Service Management in Jira Cloud. Currently, the underlying UI Modification API does not support this project type, and so we cannot support the customer portal view. 

You can find a full list of documentation for what is and is not currently supported with Behaviours on Cloud here: 

https://docs.adaptavist.com/sr4jc/latest/features/behaviours

We do have a feedback board, in which we are asking users to vote if they want to see Jira Service Management supported with Behaviours, so we can feed this back to Atlassian. You can find and vote on this here: https://scriptrunner-for-jira-cloud.nolt.io/101

Does this help?

Kind regards, 

Bobby

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events