Hello Folks,
I am using a Python API to do some automation in JIRA Cloud Instance. Now, where I am stuck is I am unable to add story points to a particular story. Below is my code snippet:
from jira import JIRA
user = '************'
apikey = '*******************'
server = 'https://*****.***.com/jira/'
# Creating connection with the JIRA
jira_server = {'server': server, 'verify': False}
jira = JIRA(options=jira_server, basic_auth=(user, apikey))
issue_dict = {
'project': {'key': 'CC'},
'issuetype': {'name': 'Story'},
'summary': "This is a test user story",
'customfield_10204': <sprint_id>
}
jira.create_issue(fields=issue_dict)
The issue created is CC-12093 with id 705378
Now, I need to assign story point to this particular user-story
issue = jira.issue("CC-12093")
issue.update(
fields={"custom_field_10208":8})
But I am getting the below error:
response text = {"errorMessages":[],"errors":{"custom_field_10208":"Field 'custom_field_10208' cannot be set.
It is not on the appropriate screen, or unknown."}}