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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

In jira , A-Slect list field value modification must set specific value to B-select list field . Edited

Hey community , 

We need behavior script for below requirement , 

Whenever , 

A-select list field  existing selected value modified 

B-select list field must set to ( No or None ) value .

 

Please help with behaviour code because requirement is for Global  projects . 

 

Since we are new to this Script runner code ,  We would like to get help from community . 

Advance thanks , 

Vishnu .

1 answer

1 accepted

0 votes
Answer accepted

Since its a global item to update we need behavior code

That is the only code you need so far.

 

Detailed Instructions

Navigate cog icon > Manage apps > under SCRIPTRUNNER > Behaviours > Add Behaviour > Edit your new behaviour > Add Mapping to your project and issue types > attach list A field by Add Field > Add server-side script > paste the one liner:

getFieldByName('YourListBName').setFormValue(-1)

The code is really self-explanatory. The behaviour script is triggered whenever the attached field (List A) has changed, the script "get"/search for a field named "YourListBName" then set the field value to "-1", which means "none".

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

127 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you