Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

customize IfCondition

Z-EL May 9, 2018

Hello,

Please i need your help:

I'm trying to create a customize if condition in Automation rules.

i create my classe which implements com.atlassian.servicedesk.plugins.automation.spi.ruleif.IfCondition and i override the function :

@Override
public Either<IfConditionError, Boolean> matches(IfConditionParam ifConditionParam) {...}

and i declare my if codition class in atlasian-plugin.xml :

<automation-rule-if-condition key="my-if-condition" class="com.exp.me.MyIfCondition" name="My if confitionn"
name-i18n-key="xxxx.xxx">
</automation-rule-if-condition>

After deploying i got this error

/rest/servicedesk/automation/1/components/if [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'java.lang.ClassCastException - com.exp.me.MyIfCondition cannot be cast to com.atlassian.servicedesk.plugins.automation.spi.ruleif.IfCondition'.

Anyone knows what that mean?

Thank you

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events