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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Trying to set default labels for an issue collector via fieldValues with javascript


 window.ATL_JQ_PAGE_PROPS = { "triggerFunction": function(showCollectorDialog) { //Requires that jQuery is available! jQuery("#myCustomTrigger").click(function(e) { e.preventDefault();


}); },

fieldValues: {

Type: 'bug',

summary: 'test',

labels : ['test'],

'labels': 'test' }



Labels or Type are not being set when submitting the feedback button, don't understand the reason why it's not creating the issue with those values, the summary gets populated fine and the issue is created with a label of the issue collector id. I tried both ways, putting it inside a list and just a string but nothing works.


jira.[mywebsite].com is the url

1 answer

I am looking to solve another issue...but thought I would hop in here and reply...

Are your label/type fields custom fields?  They may not be named what you think they are named.

For example, using the "Got Feedback?"  form, and inspecting the "What do you like?" field, this name in the HTML is actually "description-good".


Also, I dont think this is a scriptrunner issue, as the javascript you are running should be on some other type of website.. However you should be able to use chrome's developer tools -> Elements -> Inspect

And click the form...  Using the "What do you like field" this field is:

<textarea class="textarea long-field" rows="5" id="description-good" name="description-good" tabindex="-1" readonly="readonly"></textarea>


I dont know if that is what you issue is, but if the other fields are being filled in correctly and without issue, I would guess the HTML name isnt what you think it is.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events