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: 

AO not working properly in JIRA 10

Anusha Deshmukh
June 27, 2025

Getting this illegalStateExceptionError for ao in my jira plugin when trying to ao.migrate() or ao.find(), Please let me know if I m missing something.

"plugin [{com.company.jira.plugin}] invoking ActiveObjects before <ao> configuration module is enabled or plugin is missing an <ao> configuration module. Note that scanning of entities from the ao.model package is no longer supported."

added this in pom.xml

<dependency>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-plugin</artifactId>
<version>6.1.2</version>
<scope>provided</scope>
</dependency>

added this atlassian.xml

<ao key="my-ao-module">
<description>ActiveObjects plugin</description>
<entity>com.plugin.model.SettingsEntity</entity>
</ao>

entity class

@Preload
public interface SettingsEntity extends Entity {
void setProjectRadio(String projectRadio);
String getProjectRadio();
}

using ao using @ComponentImport to get Active Objects

SettingsEntity[] entit = ao.find(SettingsEntity.class);

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ahmed Arslan
Contributor
June 27, 2025

Hi @Anusha Deshmukh 

What are you trying to resolve by updating this?

Anusha Deshmukh
June 29, 2025

Hello,

I m trying to save settings for my plugin in active objects.

SettingsEntity[] entit = ao.find(SettingsEntity.class);

if (entit.length == 0) {
SettingsEntity data = ao.create(SettingsEntity.class);
data.setProjectRadio("all");
data.save();
}
Anusha Deshmukh
June 29, 2025

Using Jira 10