1

Unable to update fields for an issue in Jira-python.

When I look at the raw data in JSON. It is under:

{fields:{'customfield_10000':'some text'}

but when I tried:

issue.update(fields={'customfiled_10000':'edited'})

issue.update({'customfiled_10000':'edited'})

issue.update({fields:{'customfiled_10000':'edited'}})

issue.update(customfiled_10000='edited')

All gave me

response text = {"errorMessages":["Internal server error"],"errors":{}}

Tried added +"0000" in Client.py

data['started'] = started.strftime("%Y-%m-%dT%H:%M:%S.000%z")+"+0000" still not fixing the issue. Please Help~!!

New findings, when I create a new issue

issue= jira.create_issue(fields=root_dict)

and i can edit this issue oject using issue.update with no problem

However, when I get the existing issue using

issue = jira.issue('JRA-123')

editing this issue using issue.update gives me internal error.

6
  • Have you seen this? community.atlassian.com/t5/Jira-questions/… Commented Oct 24, 2017 at 23:33
  • tried it, no luck yet.:( Commented Oct 25, 2017 at 0:27
  • Have you authed correctly? Commented Oct 25, 2017 at 0:29
  • yes, can create an issue, update comments fine. Only can not edit customfields. Commented Oct 25, 2017 at 0:37
  • issue = jira.issue("JRA-123") issue.update(description="ASFASFASD") is it how you get the jira object? Commented Oct 25, 2017 at 0:46

1 Answer 1

1

You have a typo in the update part customfiled should be customfield

issue.update({'customfiled_10000':'edited'})
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.