You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
How can I take the value of a HTML input text field and set it as the summary of a custom issue collector?
I was able to pull in the submitters name and email address into the custom issue collector form so I know the 'fieldValues' block is working correctly:
<div class="field-group">
<label for="summary">My Summary Field</label><br>
<input type="text" name="type" id="summary"><br><br>
<input type="button" id="button-launch-issue-collector" value="CONFIRM">
</div>
...
fieldValues: {
summary : ???,
fullname : AJS.params.userDisplayName,
email: AJS.params.remoteUser
}
I've read this page describing the 'Advanced use of the JIRA issue collector' as well as how to use Javascript to assign variables from HTML text input values however I'm still unsure how to proceed here. Do I need to use a 'Dynamic functions' (e.g. fieldValues : function() { var values = {};) in order to set the summary field from the value the user typed into the HTML input text field?
Were you able to get a response for this question?
I am looking at the same thing and I am unable to gather information from inputs in my HTML to be sent to the JIRA Dialog.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.