Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript event on Asset multiple selection

Ariel Mears April 11, 2023

I'm trying to work out a jquery script that occurs when an asset multi-select field has changed.  I've managed to get the script to execute when values are populated in the field based on the "change" event, but my issue lies in when values are removed.  What event is used when you clear some selections?

2 answers

1 accepted

2 votes
Answer accepted
Ariel Mears April 14, 2023

I figured out how to do it.  I added a content trigger on the select id to tell me when the options had changed.

1 vote
Kai Becker
Community Champion
April 12, 2023

Hi @Ariel Mears 

what are you trying to achieve with your script? Could you give some more background information? It's usually not the best idea, to build logic into Jira with custom javascript.

Ariel Mears April 12, 2023

I'm utilizing what options that are selected in the asset field to help drive the approvers field.  Unless you have other ideas on how to achieve this?  I know I can do this with a post function but what options are there when you just edit the issue?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4.2
TAGS
AUG Leaders

Atlassian Community Events