Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for Jira - Send web request

Jerry Feng December 28, 2022

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?

1.png2.png3.png

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2023

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

0 votes
Tom Lister
Community Champion
December 29, 2022

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.

Jerry Feng January 10, 2023

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

Suggest an answer

Log in or Sign up to answer