The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Set Summary Field of Custom Issue Collector with HTML Text Input

Jon Heysek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2021

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?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Maxime Girard
June 9, 2022

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.

TAGS
AUG Leaders

Atlassian Community Events