Pre-populate Label in CreateIssue URL

Michael Gibson August 17, 2017

(edited due to typo in the original post)

Hi Folks,

 

Can anyone help me withe 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?

2 answers

0 votes
Michael Gibson August 21, 2017

Bumpity bump

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 18, 2017

Jira expects parameters in a url to be quoted in double quotes, it sees single quotes as part of the data.

Michael Gibson August 20, 2017

Hi Nic,

Thanks for the reply, but that suggests the URL should be as per the example (i.e. with '&labels=%22PI7%22'), but that doesn't actuially work.

Do we know if it's possible to pre-populate a label?  Perhaps this is one field you cannot pre-populate?

Aby furthre help appreciated.

Regards

Mick

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 20, 2017

That's the one you said works fine, so I'm a little confused.

Michael Gibson August 20, 2017

Ooops, silly me - I meant to say, the one that works fine is:

 

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

 

i.e. without the Lablel parameter

 

Regards

Mick

Suggest an answer

Log in or Sign up to answer