Forums

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

Settings to restrict REST API

川目 沙英 December 23, 2024

I created an automation that uses an API to reopen a form in a customer environment.
One day, an error suddenly started occurring.

-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":""}]}

It seems that the API is probably restricted.
I would like to remove the API restriction, but I don't know where the settings related to this are.
I would appreciate it if you could tell me.

2 answers

1 accepted

1 vote
Answer accepted
Tony Mottes
Contributor
January 7, 2025

We have several clients that are experiencing this as well.  It seems to be that the "proforma.forms" property is now restricted.  The API uses the ID that is stored in that property and so it fails, but the real source is the property.  

Try logging in and going to the following URL (be sure to add your site specific data).  You should see a message saying it has been restricted.

[your_site_here].atlassian.net/rest/api/3/issue/[your_key_here]/properties/proforma.forms

 

As a work around, I have attempted to use a different API call (get form index) to get the UUID needed, but it gives a route not found error also.

I got the following API to work and use the values returned in {{webResponse.body.id}} for my subsequent calls.

api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{{issue.key}}/form

According to Support {{issues.properties."proforma.forms"}} has been deprecated. 

https://developer.atlassian.com/cloud/jira/platform/changelog/# (search for proforma)

 

川目 沙英 January 23, 2025

The error was resolved using the method you taught me. 
Thank you for your help!

0 votes
Trudy Claspill
Community Champion
December 23, 2024

Hello @川目 沙英 

You said you are trying to access an API in a customer environment. Is that an Atlassian Cloud product environment or some other type of environment?

If it is an Atlassian Cloud product, which product is it? And which API endpoint are you accessing?

If it is not an Atlassian product then you will need to contact the environment owners for assistance.

川目 沙英 December 25, 2024

@Trudy Claspill 
I am accessing an Atlassian Cloud product environment.
Specifically, I am leveraging the automation features of Jira Service Management to send web requests to specific API endpoints.

The API endpoints I am accessing are:

PUT
https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{{issue.Key}}/form/{{issue.properties."proforma.forms".forms.uuid}}/action/reopen
Trudy Claspill
Community Champion
January 1, 2025

Thank you for the additional information.

Are you an administrator of that Jira environment?

川目 沙英 January 6, 2025

I am not a site or organization administrator for that environment.

I don't have access to admin.atlassian.com, so I don't know my exact permissions, but I have the Jira admin mark, so I assume I have Jira Administration (product administrator) permissions.
I also have Administrator permissions on a project-by-project basis.スクリーンショット 2025-01-07 110102.png

Trudy Claspill
Community Champion
January 6, 2025

I have not worked with that specific API before.

I did find another post where a user had a similar problem and found a solution. Maybe that will help you.

https://community.atlassian.com/t5/Jira-Service-Management/404-when-accessing-the-form-API-endpoints/qaq-p/2370671

You may need to contact the owners of that site to get additional assistance if you don't have enough access to execute the troubleshooting tips from that post.

 

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