I'm trying to create an automation that pulls my tasks pull request data runs it through a a 3rd party process and dumps the result back into my ticket.
The problem I am having is that my pullRequest data (url/name) isn't available in my web request step - even though
1. I'm using the Pul Request Created step
2. The data is logged to the audit log correctly
3. I'm referencing things the same way in both steps
I've confirmed it logs to the audit log but isn't available in the send web request step. What's going on?
Hi @Cameron MacKenzie -- Welcome to the Atlassian Community!
Some smart values are loaded dynamically, and this can create latency / timing problems with things like the Send Web Request action in the dynamic JSON, the URL, etc. The same symptom can happen with Create Work Item and other actions use of JSON.
Please try the workaround of first storing the dynamic JSON with the Create Variable action, perhaps naming your variable varJson. Then use {{varJson}} as the custom data. This will force evaluation of the smart values before they are used later.
Kind regards,
Bill
This did it.
I had to do a bit more manipulation to get it there (the smart value evaluator in the web request didnt like string manipulation), but it seems forcing the evaluation was the missing piece.
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.