How to update labels for the issues present in Jql query/Filter

Sha k December 2, 2014

My requirement is: I want to update the labels for the issues present in the filter.

import jira.client from jira.client import jira options = {'server': 'https://URL.com"} jira = JIRA(options, basic_auth=('username], 'password')) issue = jira.search_issues('jqlquery') issue.update(labels=['Test']

I'm getting attribute error which states that 'Resultlist' object has no attibute 'update'.

1 answer

1 accepted

0 votes
Answer accepted
Sha k December 3, 2014

Found the way..

options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username', 'password')) issues = jira.search_issues('jqlquery') for issue in issues: issue.update(labels=['Test'])

Suggest an answer

Log in or Sign up to answer