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?
Hi Dean,
The parameter for suppressing notifications notifyUsers is available for REST calls that update issues via rest/api/2/issue/{issueIdOrKey}. The parameter isn't recognized when making a call to transition an issue via rest/api/2/issue/{issueIdOrKey}/transitions. Once this has been implemented on the backend, libraries like pythonjira can be updated to accommodate the feature.
I think there's a valid reason for suppressing issue transition notifications, and as such I've created a feature request here https://jira.atlassian.com/browse/JRASERVER-67061 . Give it a vote and keep an eye on that page for any updates!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.