script runner multiple condition

Spam Petya December 3, 2021

Hello,

I am using on premise confluence server, and using script runner. I have set up a custom event listener and I am lintening for LabelAddEvent. But it should only do things when the added label is a newly created. You can ask why am I not using the LabelCreateEvent. Because I need informations like the label name ( event.getLabel()), and the page name (event.getLabelled() as Page), where the label were added. These informations I can only get from the labeladd event. 

So my solution is working but it is fireing in every labeladd event insted of label created. How could I modify this?

1 answer

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2022

@Spam Petya Welcome to the Atlassian community

I would recommend submitting an issue to support here: https://productsupport.adaptavist.com/servicedesk/customer/portal/13/user/login?destination=portal%2F13

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events