Forums

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

web-section condition fails with classnotfoundexception

Christian Schulze September 6, 2018

Hello, I want to use a condition for the web-section inside a jira plugin.

But when I add

<condition class="com.atlassian.jira.plugin.webfragment.conditions.JiraGlobalPermissionCondition">
    <param name="permission">admin</param>
</condition>

I get an Caused by: java.lang.ClassNotFoundException: com.atlassian.jira.plugin.webfragment.conditions.JiraGlobalPermissionCondition

 

Can anyone help?

kind regards

Chris

1 answer

0 votes
Alexey Matveev
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 Leaders.
September 6, 2018

Hello,

Try to uncomment the jira-core dependency in your pom.xml and reimport all dependenciey

Christian Schulze September 6, 2018

Hello,

no this doesn't work and it is a little bit confusing that the class com.atlassian.jira.plugin.webfragment.conditions.JiraGlobalPermissionCondition is located in jira-api and in jira-core. :o

Alexander Plaksin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 11, 2019

Hello, Christian.

Did you find any solution?

Thanks.

Suggest an answer

Log in or Sign up to answer