Forums

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

Send email by script runner CLOUD

Eduard Diez
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.
August 8, 2018

Morning;

 

I need send a mail in CLOUD, always in CLOUD please.

I need send a mail in the roles group, when I do a action in service desk. 

Is possible to send a mail in CLOUD whit groovy? Cause I try to do, and for me is very complicated and Im new in this world.

 

Thank's

1 answer

Suggest an answer

Log in or Sign up to answer
3 votes
Kyle Moseley
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.
February 7, 2018

Try this logic on the last else if: componentImpl?.size()>1

This is assuming that the componentImpl holds the actual value of the Component System Field as an array.

 

 

Tim Perrault
February 7, 2018

What if you have more than 2 components and they have different options in the select list? The example would definitely work for two components, but not sure it would work with more than 2.

Kyle Moseley
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.
February 7, 2018

I would create multiple Lists (groovy object) to solve this. The first would be a cumulative List of options that will ultimately be rendered.

The other Lists would be options for each Component -- assuming they all could bring in different available options. Then, I would iterate through each Component entity value and use a Switch Statement to add the Component's option List if applicable to my cumulative List. At the end, toss out duplicates from your cumulative List. And eventually that cumulative List as my options to be displayed. 

Tim Perrault
February 7, 2018

Good idea! I’ll give it a try and report back. 

Thanks!

TAGS
AUG Leaders

Atlassian Community Events