Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Is it possible, using the jira python library, to transition an issue without notifications sent?

Is it possible, using the jira python library, to transition an issue without notifications sent?

Dean Kayton
March 6, 2018

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?

1 answer

1 accepted

0 votes
Answer accepted
Shaun S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2018

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events