jira icon indicating copy to clipboard operation
jira copied to clipboard

Creating a natural way of updating issues with just the issue key using JIRA object

Open ghost opened this issue 6 years ago • 3 comments

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(...)

ghost avatar Jul 19 '18 02:07 ghost

Is this available now? :)

jdragonbae avatar Dec 17 '18 00:12 jdragonbae

Is this still open?

ajith-haleshappa avatar Jun 26 '19 12:06 ajith-haleshappa

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

rynkk avatar May 09 '22 14:05 rynkk