Forums

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

Can I re-open a form on JSM with an automation?

Lucas de Souza
Contributor
November 10, 2023

Hello everyone.

I hope you doing well today.

 

Can I re-open a form when the criteria are not correct?

For example, if someone adds a wrong approver can I re-open the form and ask them to insert the right one?

I was thinking maybe json?

Best, Lucas.

2 answers

0 votes
Jakub Szymański January 13, 2024

Hello @Marc - Devoteam 

Can I ask for help with that topic?

I have done like You say. But not works. I cannot diagnose the problem. 

I have generated user API token 

User API Token.jpg

Set a rule

rule.jpg

But get error

error.jpg

Any idea?

Best regards

Marc - Devoteam
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 15, 2024

Hi @Jakub Szymański

I think I had old information.

You could check the following article: Submitting-or-reopening-a-Form-using-Automation-and-API 

Like Megan Moulton likes this
Megan Moulton May 14, 2024

Your link works perfectly! Since this actions requires webrequests, if you need hand holding like me this support guide will help with the gaps:

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

0 votes
Marc - Devoteam
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.
November 10, 2023

Hi @Lucas de Souza 

There is no Reopen forms action in automation (I could be wrong), but I can't find it and I have never seen it.

You could make an automation rule and use the Web Request action

Use a PUT request:

https://<<your site here>>.atlassian.net/gateway/api/proforma/cloudid/<<your cloud id>>/api/3/issue/{{issue.id}}/form/<<form number>>/unlock

Example rule I made:

Screenshot 2023-11-09 at 13.37.00.png 

Be aware to set the headers with the correct authentication details.

Lucas de Souza
Contributor
November 10, 2023

Hey @Marc - Devoteam thanks a lot for your suggestion. I will set up the API and test it. I will keep you updated if it works.

Thanks a lot.

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events