Forums

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

Pre-populate Label in CreateIssue URL

Michael Gibson
Contributor
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
Contributor
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
Contributor
January 26, 2024

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

0 votes
Frank Löhr
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 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. 

Wendy Gordon
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!
June 6, 2024

Thanks Frank, that solved my problem!

0 votes
Akshata Patel
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!
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
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 1, 2021

see above

Like Nuno Vinhas likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events