I am working on a workflow that will post to an API and am able to work with this API successfully with Bruno and other programs/languages.
However, I can't seem to get this to work with Jira Send Web Request in workflow specifically. It is actually quite baffling the behavior...
When I validate the rule with it set to 'POST', and sourcing a ticket that would trigger the flow, it works!
So then I go to trigger this workflow outside of the validation within the rule itself and I get the below error in the audit log:
So then I go back in the workflow and update the action from POST to PUT based on this message and change no other settings. Then when I go to validate I get an error that PUT isn't allowed, but to me this is expected because the API really expects a POST.
Has anyone experienced this behavior before?
UPDATE:
I notice if I replace the smart value I am trying to use and replace with a value it works fine. I have tried the smart value like this {{issue.fs_rm_ticket_id}} and {{issue.fs_rm_ticket_id.urlEncode}} and both fail with the same invalid method error.
Hi,
could you please give use the rest of the API call you are trying to make? It seems its connected with the smart value you are trying to put there. Also, it would be good to know which API function you are trying to call (its not visible in the screenshots).
Best would be to add log action before the call is happening and put the whole URL address with the smart value there to see, what is called in reality.
Have a nice day.
Okay, so I did that and it is pulling the field in as empty which is odd, as it is getting assigned earlier in the workflow by copying from the parent.
I changed this to {{issue.parent.fs_rm_ticket_id.urlEncode}} and this fixed the issue.
My assumption is the workflow hasn't fully finished / saved by the time the POST occurs.
Either way, using the log action helped, appreciate the tip!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.