Forums

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

Prefill the Help Center ticket via URL

timothy.quinto
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!
September 15, 2022

Hi,

When creating a Help Center ticket, it is possible to prefill some parts of the form by using the query string.  This link opens a page with filled summary and description fields:

https://company.atlassian.net/servicedesk/customer/portal/2/group/3/create/18?summary=summary&description=line1%0line2

On our form, we have a custom field with a dropdown menu.  In the HTML for the page, it has the source

<input class="Input__InputElement-sc-1o6bj35-0 bfCuIo" id="customfield_10861" name="customfield_10861" spellcheck="true" type="text" value="">

Is it possible to prefill the form for this value?  I have tried adding ?customfield_10861=value1 to the URL, but it does not work.

1 answer

0 votes
Patrik Korovsky
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.
September 15, 2022

Hi @timothy.quinto

Maybe it's a shot in the dark, but shouldn't customfield_10861 occurrences be smart values something like this {{issue.customfield_10861.htmlEncode}}?

You can try changing the default value in Jira:

Settings -> Issues. Then go to Fields and click on Custom Fields. Find your custom field and click include -> Configure and use the "edit default value" button.

Cheers,
Patrik

timothy.quinto
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!
September 15, 2022

I want this to be dynamically selected based on the URL.  The default value is not always the correct one for every user.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events