Pre-populate Fields from URL

37 comments

Steve Letch
Contributor
October 24, 2023

@Yatish Madhav 

Use a Scriptrunner Initialiser. There's templates in the adaptavist library.

Steve Letch
Contributor
October 24, 2023

Will just add, if you want to help your users a bit, use a DB query to import your custom fields and their options into Assets, then you can put an Assets widget on a service desk KB page and people can then see the ID's of things.

Like Josh likes this
Yatish Madhav
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.
October 24, 2023

Thanks @Steve Letch -  that is assuming we have and pay for ScriptRunner for Jira right? We do not have that.

Steve Letch
Contributor
October 24, 2023

@Yatish Madhav 

You could set a default value in the field but that would limit you to having that value set globally.

jamesholcomb
Contributor
November 1, 2023

One important note, I had to all lowercase "customfield_" in the url query string to get this to work.

Justin Hill
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!
January 18, 2024

I created a web tool at https://booniepepper.gitlab.io/jira-former/

 

As of posting it can just do the basic summary and description filling (code heads: feel free to contribute or send me issues etc).

 

Does anyone know if there a way to make the description handle newlines well?

Morten Junker Juul
Contributor
March 12, 2024

This works fine, but it does not work when using forms. And how would you have fields with conditions (show/hide from values selected in other fields) in a "Request type".  It would require a lot of request types if not using forms with field conditions.

Would really be nice if pre populate worked with forms also. 

Like Steven Cavanagh likes this
Jacob Jaskolka
Contributor
June 2, 2024

As others have mentioned, we need the ability to use Asset fields as the pre-filled value. The half-measures from Atlassian and then calling it a complete solution need to be addressed. 

Furthermore, as proforma forms are taking more of an active role, it should be available there too.

Ashutosh Sharma
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2024

For Forms, we have this open feature request: https://jira.atlassian.com/browse/JSDCLOUD-12177

Josh Marsh July 16, 2024

Does anyone else run into the issue where if the customer is not already logged into the portal then the context part of the URL is overwritten when clicked/entered/selected? 
For example:
https://domain.atlassian.net/servicedesk/customer/portal/12/group/81/create/502?summary=This%20is%20my%20subject&customfield_12648=BCN-83
->
https://domain.atlassian.net/servicedesk/customer/portal/12/user/login?destination=portal%2F12%2Fgroup%2F81%2Fcreate%2F502

Crucially, is there a way to retain the field information in this scenario?

Thanks,
Josh

Steven Cavanagh September 15, 2024

Yet another feature that JSM almost does.

Asmatullah Latifi January 22, 2025

But its not working with Dropdown Feld ? any idea ? i tried like follow link:

 

https://ourdomainname.atlassian.net/servicedesk/customer/portal/19/group/63/create/312?customfield_13070=blocker

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events