Forums

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

We couldn't save your changes. Copy your content, then try reloading the page.

Taiwo Ojo
July 2, 2020
{
"errorMessages": [
"We couldn't save your changes. Copy your content, then try reloading the page."
],
"errors": {}
}

I get the above error trying to edit issue via Cloud Rest API (PUT operation)

url = "/rest/api/3/issue/{issueIdOrKey}"

 Please help

1 answer

0 votes
M Amine
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 Champions.
July 2, 2020

Can you please send your code?

Taiwo Ojo
July 6, 2020
from inputer import a, b, c
import requestsfrom requests.auth
import HTTPBasicAuth
import json

auth = HTTPBasicAuth(b,c)


counter =
0

headers = {
"Accept": "application/json", "Content-Type": "application/json"}

f=
open("doors-test.json", "r")
if f.mode == 'r': fields =f.read()
field = json.loads(fields)
print (len(field["Key"]))

for
i in range(len(field["Key"])):
val =
str(i) key = (field["Key"])
number = (
len(field["Fix versions"][val]))

url =
"%s/rest/api/3/issue/%s" %(a, key[val]) print (url) # quit()

payload = json.dumps( {
"fields":
{
"components": [ { "add": field["Components"][val] } ],
"customfield_10400": { "value": str(field["Acceptance Criteria"][val])},
"customfield_13876": {"value" : field["Sub-process"][val]} } })

response = requests.request(
"PUT",
url,
data=payload,
headers=headers,
auth=auth
)

counter +=
1

print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
print(counter)
Tronikel
July 28, 2021

Same here, using atlassian-connect-express, still getting this error when using PUT /rest/api/3/issue/

Suggest an answer

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

Atlassian Community Events