Pre-populate Label in CreateIssue URL

Michael Gibson August 21, 2017

<Reposting to bump it>

Hi Folks,

Can anyone help me with the proper syntax for pre-populating a label when using the URL for Create Issue?

I've tried various combos, but it doesn't work

 

This sort of things works fine for me"

https://<server>/secure/CreateIssue!default.jspa?pid=10000&issuetype=10000

(i.e. without the Lable parameter)

 

But this doesn't:

https://<server>/secure/CreateIssue!default.jspa?pid=10000&issuetype=10000&labels=%22PI7%22

 

Any ideas?  Is it even possible?

3 answers

3 votes
Maarten Cautreels
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2017

Hi Michael,

It does work for me without the quotes:

https://<server>/secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=10000&labels=test

And if you'd like to add multiple labels, simply add the labels param multiple times:

https://atlassian.persgroep.net/jira/secure/CreateIssueDetails!init.jspa?pid=14598&issuetype=6&labels=test&labels=testing

Hope this helps.

Best,

Maarten

Michael Gibson August 21, 2017

Thanks for the prompt reply - but I tried that and it didn't work.  I tried it the other day, and tried it again after reading your response and it doesn't work.

I add that to the URL, but the Label field remains blank - it's simply not populated.  In my case I tried:

...&labels=PI7

Perhaps it's a version issue - we have v6.3.13#6344

Any suggestions?

Bryan Karsh December 15, 2017

Hey Michael -- are you using CreateIssuesDetails!init.jspa? That is the part that allows to to pre-populate the fields.

Tenzing Doleck January 26, 2024

i used CreateIssuesDetails!init.jspa?  and this still doesnt work

0 votes
Frank Löhr December 1, 2021

I had the same problem that labels will not pre-populate if added to a create issue link. To solve it just add labels to your Create Screen. You can only change fields that are visible in the create dialog. That's it. 

0 votes
Akshata Patel May 20, 2021

Hi Michael, were you able to solve this? 

Am running into the same error, even with CreateIssuesDetails!init.jspa? the labels fields isn't populated from the url.

Frank Löhr December 1, 2021

see above

Like Nuno Vinhas likes this

Suggest an answer

Log in or Sign up to answer