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 votes
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
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

302 views 0 1
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