Forums

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

How to iterate over all permission schemes using groovy?

Olexandr Polinkevych
Contributor
September 26, 2018

I want to rename all permission schemes... How to get them?

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
PD Sheehan
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.
March 3, 2020

Hi @Celeste D_Alessandro 

 

The little (i) below the script editor is often useful.

In this case, you should see the "chageItems" is available.

Then, you can look to see if any of the changeItems include the field you care about.

changeItems.any{it.field == 'Reference RD'}

That's all.

I'm assuming your notification scheme is set up to pick up the event that you will fire and the recipient is set to the value of 'Reference RD'?

Another potential option for you is the "Send custom email" listener. This would let you control the content of the email.

Celeste D'Alessandro
Contributor
March 4, 2020

Hi @PD Sheehan

Thank you very much for your answer.
But It does not works. Do I mis something? See the attached files.

Thanks in advance!
Regards!

PD Sheehan
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.
March 4, 2020

I'd be happy to help further, but I don't see any attached file.

Celeste D'Alessandro
Contributor
March 5, 2020

Hi @PD Sheehan

 

It was a notification issue (my mistake). It works now! Thank you very much!

Regards!

Celeste D'Alessandro 

TAGS
AUG Leaders

Atlassian Community Events