Forums

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

How can I place a hyperlink with a title in custom field using APIs?

Swati Jain
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!
April 29, 2020

For example if the URL is www.website.com/123, then I want to update my custom field with something W#123 which will be an hyperlink to the above mentioned URL.
I want to do this via jira APIs.

1 answer

0 votes
Heenaben Sardarbhai Chaudhary May 26, 2024

I Understand you would like to create hyperlink into custom field. you need to use Multi-line text field and using jira cloud API you can achieve this. payload  format to call API is like this:

curl --request PUT \
--url 'www.website.com/123' \
--user 'Email:API Token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"fields": {
"customfield_xxxxx": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": " W#123",
"marks": [
{
"type": "link",
"attrs": {
"href": "www.website.com/123"
}
}
]
}
]
}
]
}
}
}'

Suggest an answer

Log in or Sign up to answer