Automation for Jira - Send web request using Jira REST API

61 comments

Daniel Brvnistan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2024

When will this be available for the Data Center? It's unusable without it.

I believe Automation Rule project permission allow user to copy the Authorization header (JIRAAUTOSERVER-522) addresses this issue. I upvoted it.

vincenzo.spatafora
Contributor
June 10, 2024

Hi @Cristiano

I have created a Jira automation rule for editing (PUT) in a specifc confluence page the value of a field (called in my case "% Completion").

But you get an error message saying:

Error publishing webhook. Response HTTP status: 401

Do you see a reason for that?

Thanks in advance, Vincenzo.

 

vincenzo.spatafora
Contributor
June 10, 2024

Hi @Cristiano,

I use Jira DC version 9.12.5.

Thanks, Vincenzo. 

Yash Sheetal Bhandarkar June 18, 2024

Hello Team,

I am trying to configure an automation in which I wanted to email the Assignee, Watchers & Reporter the list of issues through JQL regularly.

I have configured it. 

Can you please help me with the custom field data to display through Lookup Issues?

Regards,

Yash

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.
June 18, 2024

Hi @Yash Sheetal Bhandarkar 

I recommend creating a new question, helping to focus the conversation on the specific problem you are solving.  When you create the question, please include:

  • describe the problem you are trying to solve; that is, "why do this"
  • what version of Jira you are using, as that impacts the available automation features  (e.g., Jira Data Center's version of Lookup Issues does not support all fields yet)
  • what project type you are using, as that impacts the smart values / fields available
  • an image of your complete automation rule
  • images of any relevant actions, branches, conditions, and the trigger
  • an image of the audit log details showing the rule execution
  • describe what is not working as you expect

Those will provide context for the community to offer suggestions.  Thanks!

Kind regards,
Bill

Like # people like this
Rosana Casilli
Contributor
September 11, 2024

I have a question and if I want to do it in service management project?  does any of the parameters change? 

using the info provided in this article I am getting a 404 form not found. I think it is because the api parameters refer to jira and not to jira service desk. isn't it?

 

Thanks in advance

Ro

Khira Niemeier
Contributor
October 15, 2024

Hey there,

I am currently trying to find a solution to clone an issue with an automation and copying the Confluence Pages linked to the trigger issue to the new created issue.

I really try to understand how to use this documentation to make it work, but I can't tell how and where I could include this into the automation.

If it is possible, could somebody help me with this? :) 

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.
October 15, 2024

Hi @Khira Niemeier 

I recommend creating a new question, perhaps including a link to this older article's thread, to ensure the maximum number of people see it to offer suggestions.  That will help focus the discussion on your specific scenario.

When you write your question, please include the following:

  • what problem are you trying to solve; that is, "why do this?"
  • what have you tried to solve this need
  • what version of Jira you are using: Cloud, Server, Data Center
  • what project type you are using: company-managed, team-managed, and if it is Work Management project
  • if you have a rule started and it does not work as expected, please include:
    • an image of the complete rule
    • an image of the audit log details showing the rule execution
    • explain what is not working as expected, and how you know that

 

Kind regards,
Bill

Like Khira Niemeier likes this
Khira Niemeier
Contributor
October 23, 2024

Hey,

I really tried to understand this but I need help.

So I understood that I need to create an API token. (I did.)
And I encoded it with Base64.

Now what do I do with it?

I have this Automation:

Screenshot (11).png

 

The Automation throws the error:

Screenshot (12).png

So I guess the thing with me not having the permission is due to the API token not being inserted anywhere. With the error I have no clue, if it is due to the API token.

Please send help. :) 

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.
October 23, 2024

@Khira Niemeier -- Please review the article where is shows entering the Header information for the request.

Khira Niemeier
Contributor
October 29, 2024

In case somebody got stuck at the same point - here is how to go on. ;) 

Screenshot (13).png


You need to fill the header with

key = "Authorization"

value = "Basic <the encoded <Mail>:<APIToken> >

 

To get it encoded just make sure you write <your mail>:<APIToken> into the encoder.

 

In case you need a different Response then 200, you might want to use {{webResponse.body}} (which is what I need most likely) 
or {{webResponses}} which gives out more information.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events