I am trying to update custom field but it not changing and throws error
"errors":{"customfield_10800":"The Team must be a string"}}
I am updating through python jira api following is the input dict
"customfield_10800": {
"id": "485",
"title": "Facilities IT",
"isShared": True
}
self.jira = self.LogInJira()
issue = self.jira.issue(jiraid)
issue.update(fields=updatedict)
Field customfield_10800 is a text field so you should use:
"customfield_10800": "An example text"
Regards,
Seba
"customfield_10800": "485"
I passed only ID and it worked thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sebastian Krzewiński sorry to bother you, but i've the same problem with a custom field type: date time picker.
i'm trying to update the value of the field using python, i've the value that i need to set on a variable
but when i try the update, it fails with:
DEBUG:atlassian.rest_client:HTTP: Response text -> {"errorMessages":[],"errors":{"customfield_10403":"The ST-InProgressTime must be a string"}}
i'm passing this:
data["fields"][field_id['ST-InProgressTime']] = {"value": 'First_STInProgressTimeET' }
where First_STInProgressTimeET is a variable with the value: 2014-11-21T09:11:00.000+0100
have you some solutions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to check type of you field and use correct format. Based on: https://developer.atlassian.com/cloud/jira/service-desk/rest/intro/#fieldformats
Date picker custom field - A custom UI field that enables a date in 'YYYY-MM-DD' format to be picked.
"customfield_11441" : "2015-11-18"
Date time picker custom field - A custom UI field enables a datetime in ISO 8601 ('YYYY-MM-DDThh:mm:ss.sTZD') format to be picked.
"customfield_11442" : "2015-11-18T14:39:00.000+1100"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sebastian Krzewiński , yes, the format is correct, my data is:
2014-11-21T09:11:00.000+0100 and it's correct.
I've also checked that in my script i'm passing a string:
2014-11-21T09:11:00.000+0100 #print of the variable with the data
<class 'str'> #print type of variable
I don't understand.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I received the same error as the OP, then found a way to fix it: https://community.atlassian.com/t5/Jira-Software-questions/Teams-option-unable-to-edit-using-automation/qaq-p/2197615#M291300
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.