I'm trying to set up a http request in an automation rule.
Hi @Steven Vits
As you are making a call to a Microsoft endpoint, this is providing the 401, not the automation rule in Jira.
So the authorization towards MS not working.
It also states this in the error "The provided authentication token is not valid, token signature is not properly formatted"
Check what authorization is needed at the MS side?
Also to get a token from MS, you first need to be logged in on the MS side, to get an oauth token.
The call you are making is not authorized, with the provided credentials in the post action.
@Marc -Devoteam- , thanks for the reply, the first pist action to Microsoft is succesfull and I do get a reply. Also using postman all is working like it should be.
the second http action should start a power automate flow with the auth token from tje app registration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
Are you sure about the "webhookResponse" smart value? I know it exists for Jira Data Center but on Jira Cloud I always use "webResponse".
Here is what I have for the Authorization header.
Bearer {{webResponse.body.access_token}}
+ make sure you check this option on the call where you are requesting the token "Delay execution of subsequent rule actions until we've received a response for this web request"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Charlie Misonne thank you for the suggestion. I will check this first thing tomorrow. As I do get a value in the var iI assumed this was correct. It seemed like a newline value JSM was adding to the bearer token.
will keep you posted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And is what you are getting in the variable the expected value?
I'm doing the same, also to trigger a PowerAutomate flow and I did not have to deal with any newlines in the response.
I'm not storing the token in a variable first. I use the smart value directly as Authorization header. Perhaps this can cause a difference.
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.