Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I notify the assignee when an issue is cloned from a project?

Phil Bustin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 3, 2023

An automation clones an issue from a JSM project to a Jira Software project that is selected  from a field entered by the user, and adds the new issue to a sprint.  The automation also adds the new issue to sprints in various projects depending on conditions,  The automation is in the JSM project, but could be changed to global.

Can an notification component be added to each condition of the automation, sending an email to the assignee of the new Jira Software project?  If so, I haven't been able to figure out how.

Alternatively, can a global automation be created in Jira Software, with the trigger "Issue created" or "Value changes for Sprint", that sends the emails?

1 answer

0 votes
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 14, 2018

Hello @Ramesh Lakshmanasamy

What are you tryin to achieve with this package?

Ramesh Lakshmanasamy
June 14, 2018

I need to get Priority using priority name.So i am trying to get Priority.

Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 14, 2018

Try this:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.priority.Priority

def constantsManager = ComponentAccessor.getConstantsManager()
Priority priority = constantsManager.getPriorities().find {it.name == "Low"} // low - priority name
Ramesh Lakshmanasamy
June 14, 2018

@Mark Markov getPriorities() method not avail in priority package that is config package right and also we cant pass parameter in above method.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events