Forums

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

Why I cant't import ComponentAccessor in behavior ?

daymonTwo February 11, 2020

Always when I try import 

import com.atlassian.jira.component.ComponentAccessor

while creating behavior i get error 

unable to resolve class com.atlassian.jira.component.ComponentAccessor @ line 3, column 1. import com.atlassian.jira.component.ComponentAccessor; ^ 1 error

Please, tell me what I doing wrong? 

version jira 5.0.3 

Thanks. 

1 answer

0 votes
Leonard Chew
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.
February 11, 2020

Good question. I cannot reproduce your problem.

Are you really still using Jira 5.0.3, or is that the scriptrunner version?

If it is your Jira version, then I'd upgrade the system. It might be that the class is not available in that version.

I have tested the import on Jira 7.7.1 (SR 5.6.12) and Jira 8.5.0 (SR 5.6.14.1-p5) and both work.

behaviours.png

Suggest an answer

Log in or Sign up to answer