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

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

Hung Nguyen Jan 13, 2015

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 Leader 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.

Hung Nguyen Jan 13, 2015

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 Leader 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

171 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