I need to create a automation rule with two step by step web requests.
First one should get my account authorization info (e.g. token) set it to variable and used for next web request...
1. rest/api/latest/user/search?query={{ReportingUser.urlEncode}} (I can't understand what i need to enter instead of {{ReportingUser.urlEncode}} to get my user info and what i need to choose from answer to get the authorization data for next request)
2. /rest/api/3/workflowscheme/project/?projectId= (how i should use authorization parameters from previous request)
Thanks a lot!
What problem are you trying to solve by dynamically changing the REST API call authorization from an automation rule? I do not believe that is a capability of rules, but instead something more likely done from an application calling the REST API functions.
For your first question, the user's account ID value is needed for a user search: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get
Kind regards,
Bill
I need to call request for getting info about project scheme, but when i try to validate it in jira automation rule i get the unauthorized error and, as i understand i need to get some user data before for authorization
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking at the documentation, that function requires the Administer Jira permission, and so the token for the request would need to be for a user with that permission, and not one dynamically provided from another user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.