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

Set fieldValues in JIRA Issue Collectors for Affects Version/s

chriswolcott
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!
November 17, 2023 edited

Was hoping to assign field values like this:

 

<script type="text/javascript">

window.ATL_JQ_PAGE_PROPS = $.extend(window.ATL_JQ_PAGE_PROPS, {
triggerFunction : function( showCollectorDialog ) {
$('#feedback-button').on( 'click', function(e) {
e.preventDefault();
showCollectorDialog();
});
},
fieldValues : {
email: userInfo_fullname,
fullname: userInfo_email,
priority: '5',
affectsversion: ['1.0.2']
}
});
</script>

Works just fine for email, fullname, priority, but not for affectsversion.

What is the fieldValue name for Affects Version/s?

I assume assigning a value will need to be in the form of an array.

Can I use the value of the release '1.0.2' or does it need to be the id?  If it is the id how do I find that.

 

1 answer

1 accepted

0 votes
Answer accepted
chriswolcott
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!
November 17, 2023

The name of the filled is versions and has to assign it the internal id which I found by inspecting the page.

 

image.png

 

<script type="text/javascript">
window.ATL_JQ_PAGE_PROPS = $.extend(window.ATL_JQ_PAGE_PROPS, {
triggerFunction : function( showCollectorDialog ) {
$('#mtpFeedback').on( 'click', function(e) {
e.preventDefault();
showCollectorDialog();
});
},
fieldValues : {
email: userInfo_fullname,
fullname: userInfo_email,
priority: '5',
versions: ['29310'],
}
});
</script>

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
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