Forums

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

Reopening a form using Automation and API

川目 沙英 December 19, 2024

I am using automation and API to reopen forms. However, automations in Instance A that were previously successful are suddenly throwing errors. The same automations in Instance B continue to succeed without any issues.

・Instance A
スクリーンショット 2024-12-20 144740.png

・Instance Bスクリーンショット 2024-12-20 144515.png

The contents of the web request URLs for A and B are the same except for the cloud ID.

■To reopen a form

- The web method

PUT 
https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{{issue.Key}}/form/{{issue.properties."proforma.forms".forms.uuid}}/action/reopen

■Error message
Unable to publish the web request - received HTTP status response:

404
Error found in the HTTP body response:
{"errors":[{"status":404,"code":"NOT_FOUND","title":"Route not found","detail":""}]}

I tried adding "Record Action" to see if I could get the value using smart values.スクリーンショット 2024-12-20 145334.png
・Instance A
 ⇒Unable to get value
  {{issue.properties."proforma.forms".forms.uuid}}
・Instance B
 ⇒No issues

Could the error be caused by a permissions issue? Or a smart value issue?
I would appreciate it if you could let me know.

1 answer

1 accepted

0 votes
Answer accepted
Tomislav Tobijas
Community Champion
December 20, 2024

Hi @川目 沙英 ,

There have been some changes when it comes to smart values for forms. I would recommend checking out the following article: 🎉 New! Access form and form fields with smart values in Jira Service Management

Potentially, this "proforma" property has been 'deprecated' on one of the instances and replaced with those new smart values.

Hope this helps.

Cheers,
Tobi

川目 沙英 January 23, 2025

It was caused by 'proforma.forms'.
The issue has been resolved. Thank you for your help!

Like Tomislav Tobijas likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events