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

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
AUG Leaders

Atlassian Community Events