Skip to content
Advertisement

Is there any way to add components to jira issue using python jira client?

I was working on a project where I have to update jira issue fields like components , epic links,etc. I am using jira python client(https://pypi.org/project/jira/) to do this task.

JavaScript

This is outputing below results

JavaScript

Because components is a array So If want to update a field in the jissue I have to do the below things

JavaScript

But this method is giving below error

JavaScript

Advertisement

Answer

I’m the author of this question, I researched everywhere and I sadly didn’t find the method to add components using jira python client,so I created new method to add component which uses rest api provided by .

JavaScript

I got another cleaner method, If We want to update any fields of issue in jira we could use the Jira api method of updating by passing dictionary to update argument.

JavaScript
Advertisement