Automation is working as expected. However we have not found a way to suppress notifications when transitioning an issue. When updating an issue we are able to:
issue.update(
fields={
'labels': issue.fields.labels,
'fixVersions': versions
},
notify=False
)
but there does not seem to be an equivalent for:
def get_transition_id(issue, action):
transitions = jira.transitions(issue)
for transition in transitions:
if transition['name'] == action:
return transition['id']
transition_id_close = get_transition_id(issue, 'Close Issue')
jira.transition_issue(issue, transition_id_close) # How does one suppress notifications here?
Is there an equivalent?
Isn't transition connected with an event that trigger an notification? I think that editing the transition (or notification) in the UI should help here and then you can simply execute it over JIRA Python.
You can always create a transition (only available for JIRA Python but also goes to Close status) without an associated notification.
Oh, thanks for this. I understand now that the notification is triggered outside of the issue transition request. I think the solution you propose is the only way to perform what I propose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.