NoClassDefFoundError while using agile JiraSoftwareFeature in Scriptrunner REST Endpoint


Here's my code. I put the code into a groovy file not inline.

I got a JiraSoftwareFeature  NoClassDefFoundError .

someone can help? 

JIRA version:7.1.2

scriptrunner version:4.3.1


import .....




JiraSoftwareFeatureService jiraSoftwareFeatureService


@BaseScript CustomEndpointDelegate delegate

doSomething(httpMethod: “GET", groups: ["jira-administrators"]) { MultivaluedMap queryParams, String body ->

   def enabled = jiraSoftwareFeatureService.isFeatureEnabled(JiraSoftwareFeature.PARALLEL_SPRINTS)

  return Response.ok(new JsonBuilder([abc : enabled]).toString()).build()



4 answers

This widget could not be displayed.

Think you could include the whole code block, imports and all?

This widget could not be displayed.

hi, Jonny Carter. Thanks in advance.

I'm sure that I imported all the classes as possible as I can.

My imports :


import com.atlassian.greenhopper.features.JiraSoftwareFeature

import com.atlassian.greenhopper.service.configuration.JiraSoftwareFeatureService

import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean

import com.onresolve.scriptrunner.runner.customisers.WithPlugin


import groovy.json.JsonBuilder

import groovy.transform.BaseScript



This widget could not be displayed.

I can't find the class com.atlassian.greenhopper.features.JiraSoftwareFeature, even in the JIRA Software source. I can find a JiraAgileFeatures class in the same package in the API docs (, but I'm not sure that's what you need.

Based on the enum property you're after (PARALLEL_SPRINTS), I think you want is

I also can't seem to find any documentation for a JiraSoftwareFeatureService. That's probably just because parallel sprints is still in labs; the API is probably changing rapidly, and I just need a particular version of the source. Did you have another base you were working from to help you divine the API needed for parallel sprints?

This widget could not be displayed.

Greenhopper is a bundled plugin in JIRA 7.1.2, and version is 7.1.20.


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

196 views 3 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you