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!
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:
Kind regards,
Bill
Hi @Sairam Adla
What is the smart value you are using ? What is the expected vs actual result ?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have a screenshot of the automation action ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Based on the screenshot you apply .urlencode to OS only not Region nor VM SKU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
based on teh screenshot you provided you send {{Region}} not {{Region.urlEncode}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.