Can we use script-runner to run script right after change is made to a field?

I am trying to see if there is anyway to do some activities right after a field is changed (an option selected from a list), even before the Submit button is clicked.

What I actually wanted is to filter a second field selection list after the first field is changed.

Can Script-runner be invoked in that situation?

Thanks

1 answer

0 vote
Boris Berenberg Community Champion Jan 13, 2015

You could have a post function which would make the change after the Submit button was clicked, or you can use JavaScript to make the change in the UI before the Submit button is clicked.

Thanks Boris, It's exactly what I'm using right now, using JavaScript to make change in the UI. The problem is that the Javascript (in the description of custom field) was not fired every time the Create Issue screen reloaded out of Project changed, and on the view issue screen where the selection list displayed ONLY when the field edit (pencil icon) is clicked for the field.

How can I register to run my javascript when the pencil icon is clicked for a field?

Boris Berenberg Community Champion Jan 13, 2015

I am not sure, I am not a JS expert, but hopefully someone else here can help.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

117 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you