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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Set fieldValues in JIRA Issue Collectors for Affects Version/s

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

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