Forums

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

Embed a URL to custom field (Paragraph) not working

Mahesh Kumar CD February 1, 2024

Hello,

Using automation rule, I am embedding a URL to custom field type Paragraph. The URL is giving a partial link.

Here is sample URL
https://xxxx.yyyyy.com/db/btnn6swg7/form?a=API_GenResultsTable&query={29.EX.{{issue.customfield_10117}}}&apptoken=xxxxx

The above URL when clicked should open the URL using the value in the custom field. However having an open and close flower brackets "{" is not allowing the complete URL link.

Please suggest to embed the link, so that it can URL in a different browser.

 

Thanks in advance.

Mahesh Kumar

1 answer

0 votes
Mark Segall
Community Champion
February 1, 2024

Hi @Mahesh Kumar CD and welcome to the community!

Let me play what I'm reading back.  You are trying to wrap the value of a custom field into a static URL.  The static URL has curly braces in it which is impacting the ability to capture this?

Here's an approach you could take where you use a variable to capture the URL with double pipes as a placeholder then replace those with the desired field value.

  • ACTION: Create Variable
    • varURL
    • https://xxxx.yyyyy.com/db/btnn6swg7/form?a=API_GenResultsTable&query={29.EX.||}&apptoken=xxxxx
  • ACTION: Edit Issue
    • {{varURL.replace("||",issue.customfield_10117)}}
Mahesh Kumar CD February 5, 2024

Thanks for your response.
I am using a custom field of type Paragraph wherein i am trying to provide clickable URL which takes you to New tab/ window using the URL. .

Tried the above method however still the link breaks and not getting the full clickable URL. Here is below snippet, which I am trying -

[Click-here|https://xxxx.yyyyy.com/db/btnn6swg7/form?a=API_GenResultsTable&query={29.EX.||}&apptoken=xxxxx]

Please advice.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events