The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events