Forums

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

Set a label "test" for an issue collector in JIRA via fieldValues in Confluence (HTML embeded)

Kev October 13, 2023

Hello 

I have created a issue collector in JIRA. Trigger is "custom" and then i embedded the code in a confluence page in HTML. 

My goal is, when i create an issue in JIRA with the issue collector, that a new label is set. (btw. i realized that the issue collector is seting a label with the collector-id - would be nice to remove this --> but this is low prio)

I'm doing this according this article: Customize the Jira issue collector | Atlassian Support 

Beside of the label I have another field, where i would put in some values, and this is working fine (below the line with "customfield_19700 : 'Hello',"). 

<script src="https://jira.prod.xxx.com/plugins/servlet/issueCollectorBootstrap.js?collectorId=fbf1414c&locale=en_US">
</script>

<script>window.ATL_JQ_PAGE_PROPS =
{"triggerFunction": function(showCollectorDialog)
{jQuery("#myCustomTrigger").click(function(e)
{ e.preventDefault();
showCollectorDialog();
});
},    

fieldValues : {            
labels : 'Test',
customfield_19700 : 'Hello', 
}

}
</script>

 

I am sure, that the id of lables is labels and not a customId - i have checked this already.
What is wrong? 

 

Thx a lot! 

1 answer

0 votes
Daniel Hadrian
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!
December 12, 2024

I'm experiencing the same issue and would like to have a solution. 

I have a "customfield_10006" (that is the "Epic Link") that gets filled correctly, but "Labels" stays empty. Only the Collector-xxxxxxx label gets filled.  

Edit: 

fieldValues: { labels: ["label name"],} 

Doesn't work either. the [ ] to mark an array must be used. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events