Automation to update URL field

Brian Gauthier February 23, 2024

I'm trying to get a URL field to populate based on the values of another custom field (AzureDevOpsID) 

The code I'm using is 

"https://tfs.prd.xxxxx.com/xxxxxx/xxxxx/_workitems/edit/" + {{issue.fields."AzureDevOpsID"}}

and returns

 (Specify a valid URL for the Custom Field (customfield_10050))

 

 

1 answer

1 accepted

1 vote
Answer accepted
Kalyan Sattaluri
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.
February 23, 2024

Hello @Brian Gauthier 

If customfield_10050 is the one which should store the URL, you will need to use:

https://tfs.prd.xxxxx.com/xxxxxx/xxxxx/_workitems/edit/{{issue.fields.AzureDevOpsID}}

 

the fields attribute is optional, you could as well use

https://tfs.prd.xxxxx.com/xxxxxx/xxxxx/_workitems/edit/{{issue.AzureDevOpsID}}

 

But before you set the field to the URL, first log {{issue.AzureDevOpsID}} value so you know its correct and has no typos etc.

Brian Gauthier February 23, 2024

Thank you.   That was similar to my original attempt, but the quotation marks around it was causing the problem.

Like Kalyan Sattaluri likes this
Kalyan Sattaluri
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.
February 23, 2024

Please confirm and let us know if issues.. Also if issue is resolved, please consider marking answers as accepted so others can benefit in future when researching.

Like Brian Gauthier likes this

Suggest an answer

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

Atlassian Community Events