How to stop Jira Notifications based on type of creating issue?

The following is my scenario

There are 2 ways of creating issues in the repository

1. Importing from a CSV file ( 1000 issues for each import )

2. Creat an issue in regular Jira process i.e create issue link

We need to stop notifications to reporter while importing from csv file because the reporter gets notified for every new issue he creates. However he needs to get a notification while he creates an issue using regular Jira process i.e create issue link.

How can we do this ? Anykind of input will be appreciated to fix this scenario.

2 answers

1 accepted

This widget could not be displayed.

Hello,

You can create a project and set its notification scheme to "none" while importing the data from CSV. After the import, set the notification scheme to the previous one.

You can also disable only the "Issue Created" event on the existing notification scheme while importing and enable it after that.

Best regards,
Lucas Timm

When importing the issues from a csv file the issues are assigned to "Project Lead" instead of Default assignee "Unassigned" . I have checked the components Default assignee is Project Default and Default assignee is Unassigned. Is this a bug in Jira 5.2.4 ? Has anyone encountered similiar kind of issue in Jira 5.2.4 ?

I found a solution by adding the following line , while setting the notification scheme to "none"

jira --action updateProject --project "zjiracliX" --defaultAssignee "unassigned" notificationscheme none

This widget could not be displayed.

Was thinking of other options that achieve this, and I could only think about this (they are not direct answers):

  1. The most practical and easy solution is to use a different user for doing this CSV import.
  2. Take out 'Reporter' from the issue created event as this is practically of no use (if you do not allow changing of Reporter during issue creation).

I am trying to import issues from a CSV file with (1000 issues). I am using runfromCSV to import the issues but i am disabling the notification scheme and making sure the default assignee is Unassigned but i am getting errors. Please help me to solve the following issues .

  1. def runJenkinsStep1 = "cmd /c //myJiraInstance/JenkinsHome/userContent/Atlassian/jiraTestAdmin.bat --action updateProject --project $projectKey --notificationScheme \"Disabled Notification Scheme\" --defaultAssignee unassigned "

    def runJenkinsStep2 = "cmd /c //myJiraInstance/JenkinsHome/userContent/Atlassian/jiraTest.bat --action runFromCsv --file $sourceFile --propertyFile $propertyLocation --common \"--project $projectKey\" --continue "

    def runJenkinsStep3 = "cmd /c //myJiraInstance/JenkinsHome/userContent/Atlassian/jiraTestAdmin.bat --action updateProject --project $projectKey --notificationScheme \"Default Notification Scheme\" --defaultAssignee unassigned "



    Error i am getting is : Process Error: Error: Unknown flag 'defaultAssignee'. Error: Unexpected argument: unassigned

  2. My CSV file has lot of special characters like ? " " / ' ( ) - . ,

    Error i am getting is : Remote error: com.atlassian.jira.rpc.exception.RemoteValidationException: {summary=The summary is invalid because it contains newline characters.} : []

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

199 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you