Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

For custom embedding of Issues Collectors, auto-update fields after initialization?

Andrew Fisher
Contributor
March 24, 2024

When using the custom embedding of an issue collector in a webpage (per this documentation) does anyone know if it's possible to automatically set the value of fields after the collector has been initialized & triggered?  Or somehow query the detail of the collector before setting the values?

My use case is as follows.  I have my issue collector being shown and my javascript auto-populates simple text fields without any problem.  I want to auto-populate some select fields, and to use the example in the linked page above and the section called "Select list example with issue priority", although I might know the issue is "Critical", I'd need to figure out whether to pass in a value or "1" or "2" (as opposed to the passing in "Blocker" or "Critical").  My thinking was that I could use document.getElementById inside the collector iframe to translate my intended value (e.g. "Critical") into the required value (e.g. "2").  However, these elements are not visible / accessible until after the collector has been displayed, and I haven't had any success with having javascript update the field values after the collector is initialized.

(For the various select fields I want to be able to support, in theory I could use the REST API to get options & values, although I'd prefer to avoid this, to keep things simple, avoid additional authentication etc).

Thanks for any ideas / suggestions

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events