We currently bind a function to the event ‘dialogContentReady’ before calling the show method. Within this method we do modify the input elements manually. In addition, we use a unique id in asDialog to not cause a conflict with other dialog (make sure that the opened Dialog has this id)
.asDialog({id: 'somethingUniqueOrGenerated'})
I’m not sure about this, but should check switching issueTypes
If anyone has a better solution, let us know so that we could change it to something better
Hi,
Currently I am doing this, using the ‘dialogContentReady’ event and filling the value from javascript to the summary and description fields. But I would have liked to do it through the component.
It looks to me like this JavaScript component is meant to just display a create issue dialogue, and expects the user to enter details such as description.
To fill it programmatically, dialogContentReady seems like a good choice
I am currently also looking for a way to populate inputs, text areas and dropdown with predefined values via JS. Did you find a working solution? If yes could you please share an exmaple.
This may be a bit old, but I just found a possible solution that may work a bit cleaner (Not yet tested in a lot of Jira Versions)
This will init the create issue screen with a specific issuetype, summary and a custom field (in my case story points)