Forums

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

Fetch source URL in Jira ticket

Simon Fischer
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 22, 2024

Hi,

I am trying to pre-populate the URL field of a Jira ticket from a value I set in the URL. 

For instance, I can use https://companyA.net/servicedesk/.../create/111?summary=test to pre-populate the summary field. I want to do the same but with the URL field but https://companyA.net/servicedesk/.../create/111?URL=www.example.com does not work. Does the URL field has a different API name maybe or am I doing something else wrong?

1 answer

0 votes
Rudy Holtkamp
Community Champion
January 22, 2024

Hi @Simon Fischer ,

Welcome to the community.

What you need to do is find out what the custom field id of the URL field is.

Once you have it, you can use:
https://companyA.net/servicedesk/.../create/111?summary=test&customfield_12345=www.example.com

Good luck! 

Rudy Holtkamp
Community Champion
January 22, 2024

Note 1 if you need to find the custom field id, just go to an existing issue and use this in the url:

https://companyA.atlassian.net/rest/api/latest/issue/<ISSUEKEY>?expand=names

Then search for URL and you will find something like:

"customfield_10335""url",

That is your custom field id.

Note 2 You need to prefix the URL with https:// if you have used a URL field, if it is a normal text field, then it does not matter.

Suggest an answer

Log in or Sign up to answer