I want to notify the executor of this task through Automation for Jira when a task is created or modified.
Because the company uses Enterprise WeChat, it plans to push relevant news through an application.
I read the interface provided by Qiwei. Before calling the API for sending messages, you need to call an API for obtaining access_token
I'm wondering if Automation for Jira are able to support implementation in this case?
Hi @Jerry Feng
You are using Jira Server/Data Center correct? If so, that does not have Create Variable for temporary storage, as does Jira Cloud.
Rather than store the token, could you just reference from the earlier REST API response and include that in your call to the chat REST API?
Kind regards,
Bill
Hi @Jerry Feng
I don't know this API specifically.
If you have a service/admin account there is likely to be an option where you can generate a token.
Try using this by putting it in the header as 'Bearer' with the token as the value.
You can experiment with Postman to sort out which settings will work before adding to automation configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can call the interface through Postman to operate
But if you want to execute it through Automation, I don’t know where the Token can be stored temporarily after getting it, and how to get it when sending a message notification
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.