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

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

Suggest an answer

Log in or Sign up to answer