jira
jira copied to clipboard
Creating a natural way of updating issues with just the issue key using JIRA object
Currently, in order to update a JIRA issue, I must first pull the information from JIRA itself. This would make a project I'm working on inefficient. Would it be possible to include the ability to update an issue with just the issue key?
For example, have a function JIRA.update_issue(key, fields) where key is the string representing the jira issue and fields is a dictionary with the field you wish to update, like in Issue.update(...)
Is this available now? :)
Is this still open?
While laying in wait for a PR you can hack yourself an "offline" Issue with this snippet:
def create_offline_issue(key: str, jira: JIRA) -> Issue:
return Issue(options={"async": False, "delay_reload": 0},
session=jira._session,
raw={
"key": key,
"self": f"{jira._options['server']}/rest/api/2/issue/{key}"
})
# create_offline_issue("Proj-123", jira_session).update(fields={})
Could require minor modifications for different use cases/versions of this library.
Jannik Meinecke ([email protected]) on behalf of MBition GmbH. Provider Information