Forums

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

Smart Value .urlEncode Not Working in Jira Automation Web Request

Sairam Adla May 2, 2025

I'm trying to use Jira Automation to construct a dynamic URL for accessing the public Azure Retail Prices API:


dynamic URL with OS smart value with url encode  


Expected Resolve-URL 

However, the resolved URL ends up with an empty value for ProductName:

resolved URL 

It seems like .URL Encode is either not being applied or causing the smart value to fail silently. I’ve verified that the OS field has a value before encoding.

Could someone from the community or Atlassian confirm:

  • Whether .URL Encode is fully supported in Jira Automation for web request URLs?

  • If not, is there a workaround or recommended pattern to safely encode smart values with spaces or special characters in URLs?

Thanks in advance for the help!

2 answers

0 votes
Bill Sheboy
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.
May 2, 2025

Hi @Sairam Adla -- Welcome to the Atlassian Community!

In my experience, the Send Web Request action can have timing / racetrack problems where the URL, request message, etc. might not fully evaluate fast enough when they contain smart values before they are validated and used.

I recommend trying this to diagnose and mitigate timing problems:

  • use the Create Variable action to first create the URL and request, perhaps named varURL and varRequestMessage
  • echo those to the audit log using the Log action
  • then use them in the Send Web Request action as {{varURL}} and {{varRequestMessage}}
  • when testing, carefully review the log for any unexpected values

Kind regards,
Bill

0 votes
Florian Bonniec
Community Champion
May 2, 2025

Hi @Sairam Adla 

 

What is the smart value you are using ? What is the expected vs actual result ?

 

Regards

Sairam Adla May 2, 2025

Hello @Florian Bonniec 

 

Sure! I've updated the description—please take a look.
Thank you!"

Florian Bonniec
Community Champion
May 2, 2025

Do you have a screenshot of the automation action ?

Sairam Adla May 2, 2025

@Florian Bonniec  Yes 

 

IMG_6645.pngIMG_6644.png

Florian Bonniec
Community Champion
May 2, 2025

The web request action seems to worked well, the issue is when you try to add probably the response as comment to the issue no ?

Sairam Adla May 2, 2025

@Florian Bonniec 

 

no, resolved url ends up with empty productName(OS), 

 

not able to use smart value with urlEncode

, even web request action is succeed no use Resolved url with empty productName(OS) 

 

 

Florian Bonniec
Community Champion
May 2, 2025

Based on the screenshot you apply .urlencode to OS only not Region nor VM SKU

Sairam Adla May 2, 2025

@Florian Bonniec , yes I applied for OS but it not working 

Florian Bonniec
Community Champion
May 6, 2025

based on teh screenshot you provided you send {{Region}} not {{Region.urlEncode}}

Suggest an answer

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

Atlassian Community Events