Hello Team,
Briefly, we are working on an integration between Jira Cloud and the ARES system,
We want to use Jira smart value in the URL,
In order to extract the field value and insert the link into this format "JSON_P1={{issue.customfield_10236.substringBefore(":")}}" but this is not working, even when we trigger it from the issue where the value of the smart value is correctly set, also it works well with the comment but not updating the URL with the values,
We tried to update from the data section with JSON values but seems always to only get the values from the link, since we are using the POST method with this,
Any idea on how to fix this?
Hi @Alae Riahi -- Welcome to the Atlassian Community!
When I did this a while ago, there were two parts I used to make it successful:
I retested this and it worked. When you store the URL in a created variable, you can also echo that to the audit log to confirm it looks well formed before use. This will confirm if your text handling is parsing as you expect.
Kind regards,
Bill
Hello @Bill Sheboy
Thank you for helping with this,
I tried this urlEncode as shown on the screenshots:
And I get this error response:
Error publishing web request. Response HTTP status:
500
Error response HTTP body:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try removing the urlEncode wrapper and instead use this only for your smart value included:
{{issue.customfield_10236.substringBefore(":").urlEncode}}
If that does not work, I again suggest saving the URL in a created variable first, writing the result to the audit log, and then using the created variable as the Web Request URL in the send 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.