Forums

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

Update "Delivery Area/team" using python jira api - giving errrors

Bandeep Dhillon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2022

 

jira = JIRA( server="https://<company name>.atlassian.net",
basic_auth=("myemail, <my token>) ))

 

i = jira.issue('my jira issue')

i.update(fields={'Delivery Area/Team[Select List (cascading)]':'Application Services'})


Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/jira/resources.py", line 694, in update
super().update(async_=async_, jira=jira, notify=notify, fields=data)
File "/usr/local/lib/python3.9/site-packages/jira/resources.py", line 337, in update
r = self._session.put(self.self + querystring, data=json.dumps(data))
File "/usr/local/lib/python3.9/site-packages/jira/resilientsession.py", line 201, in put
return self.__verb("PUT", str(url), data=data, **kwargs)
File "/usr/local/lib/python3.9/site-packages/jira/resilientsession.py", line 189, in __verb
raise_on_error(response, verb=verb, **kwargs)
File "/usr/local/lib/python3.9/site-packages/jira/resilientsession.py", line 64, in raise_on_error
raise JIRAError(
jira.exceptions.JIRAError: JiraError HTTP 400 url: https://<my company nam .atlassian.net/>rest/api/2/issue/188305
text: Field 'Delivery Area/Team[Select List (cascading)]' cannot be set. It is not on the appropriate screen, or unknown.

1 answer

0 votes
Mohamed Benziane
Community Champion
March 14, 2022

Hi @Bandeep Dhillon 

Welcome to the community

Can you try sommething like this :

i.update(fields={"customfield_14511":{"value" : "Jan-19", "child": {"value":"75%"}}})

https://community.atlassian.com/t5/Jira-questions/Update-a-Two-Part-Custom-Field-in-Jira-with-Python/qaq-p/722015

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events