Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Edited

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
Robert 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.
Oct 27, 2023 • edited

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