Forums

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

Post-function Send Custom Email persistently

Robert Banister
Contributor
March 28, 2018

Hello,

There is a requirement to trigger a persistent custom email to a specific user (in this case "Manager" is the custom User Picker field we created) for following condition:

- custom field 'Laptop' needs to have 1 of 3 values selected: Windows, Macbook Pro, Macbook Air

This email would be persistently sent to the Manager's mailbox until he has selected 1 of the 3 values for the type of Laptop i.e. Windows, Macbook Pro, Macbook Air

I am stuck on the Condition and Configuration part as I am unsure how to properly write it out.  The attempts I have made have unfortunately failed.

Manager custom field ID = 10237

Laptop custom field ID = 13630

Windows value - selectedValue=16383

Macbook Pro - selectedValue=16384

Macbook Air - selectedValue=16385

 

Email template:

Dear $issue.getCustomFieldValue("customfield_10237"),

The ${issue.issueType.name} ${issue.key} requires your attention.

Description: $issue.description

Custom field value: <% out <<
issue.getCustomFieldValue(
com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("TextFieldB")
) %>

Regards,
CIT

 

Hope this enough information to get an idea of what I am working on.

Thank you,

Robert

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events