Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Avoid Scriptrunner behaviour triggering when entering Edit screen Edited

Hello!

I am using a Scriptrunner behaviour to programmatically check options in a checkbox list, depending on what was selected in a select list, however, the user should be able to uncheck these options, if needed. The behaviour works fine initially, but when the issue is edited, the behaviour for the select list will trigger if there is an option selected and will reselect those options. The list will auto reset the moment I enter the edit screen.

I was able to primarily solve this by updating the behaviour script for the checkbox list itself to retain what was selected, but whenever all the boxes for the checkbox list are unchecked, the behaviour does not trigger, and the list will reset in this instance.

I've also experimented using underlyingIssue.getCustomFieldValue to only trigger the auto-selection if the value in the select list has changed. However, this will retain the checkbox list values initially on Edit, but the auto-select of the select list will no longer function properly if selecting another option, then returning to the original option. If possible, I would like to only trigger the behaviour for the select list something was changed in the select list itself, but avoid triggering it initially on Edit.

Is there any way to solve this?

Thank you!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

322 views 2 1
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