Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

PluginAccessor problem

Omer September 10, 2016

Hi,

I'm trying to control Table Grid Editor plugin with Scriptrunner scripts. In all example codes given, this import line is used:

import com.atlassian.plugin.PluginAccessor;

But in my ide intellij idea, this PluginAccessor is not being recognized. 

idalko.JPG

What might be the problem?

My JIRA version: JIRA core server 7.2.1

TGE version: 1.20.4

SR version: 4.3.6

Thank you in advance

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
crf
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2016

If I recall correctly, PluginAccessor isn't defined by JIRA; it is defined Atlassian Plugins and live in atlassian-plugins-core rather than a separate API.  Since atlassian-plugins-core is only in jira-core, you would have to have a dependency on either atlassian-plugins-core or jira-core to get ahold of that class.

It shouldn't be like that.  The PluginAccessor interface should live in an atlassian-plugins-api module so it can come in transitively through jira-api, but it doesn't, so you can't.

TAGS
AUG Leaders

Atlassian Community Events