Using Power Automate to Edit Jira Issue

Nauman Qureshi December 29, 2022
Hello,
we are trying to use Power Automate to edit a JIRA issue. 
I am not sure in which fields are necessary to fill in...
I am trying to update the status of the issue and add an comment.

I appreciate any example .json if  you can provide it to me!

2 answers

0 votes
Vamsi Kandala
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.
December 29, 2022

Hi @Nauman Qureshi

Welcome to the community!

Typical JSON syntax for creating or updating Jira ticket follows like:

{

    "fields": {

       "customfield_12345": {

            "value""Test data"
       },

       "description""Testing for the REST API"
   }
}

It should be PUT /rest/api/2/issue/{issueIdOrKey} call.

Note that all the fields you are setting/ sending via the JSON data should be present in the Edit screen of that issue type/ ticket.

Hope this helps.

Thanks,
Vamsi

Nauman Qureshi December 30, 2022

Hello Vamsi,

thank you so much for your answer!
Does this example go into the fields section or update?

Best Regards
Nauman

Nauman Qureshi December 30, 2022

image.png

Vamsi Kandala
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.
December 30, 2022

Hi @Nauman Qureshi,

Can you try replacing the code in 'Felder' text box with this?

{

    "fields": {
       
       "summary""Testing for the REST API"
   }
}

This will update the summary of the ticket.

Thanks,
Vamsi

Nauman Qureshi December 30, 2022

Hey @Vamsi Kandala,

i have replaced the code in the box and sadly it throws the same error....

 

Best Regards
Nauman Qureshi

Nauman Qureshi December 30, 2022

I have also just noticed this:

image.png

perhaps this is why it keeps failing?

Vamsi Kandala
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.
December 30, 2022

Hi @Nauman Qureshi

If you don't mind, can you send me screenshot of the url request you are making?

Thanks,
Vamsi

Nauman Qureshi January 2, 2023

Hi @Vamsi Kandala

sorry for the late reply.

I have just now noticed that the edit jira operation automatically adds the method: PUT.

And this obviously wont work because only:

"OPTIONS,GET,HEAD,POST", are allowed.image.png
Do you have any Idea if its even possible to change this?
I am unable to change code within power automate and only work with the given fields.

Best Regards
Nauman Qureshi

0 votes
Nauman Qureshi December 29, 2022

image.png

Suggest an answer

Log in or Sign up to answer