It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

[ERROR] building plugin while following tutorial

hi

i follow all the steps from this page

https://developer.atlassian.com/jiradev/jira-platform/guides/issues/tutorial-adding-content-to-the-jira-view-issue-page

 

i have 2 problems that probably is the same reason

to the last step that i run "atlas-run" 

i have this error

DueDateIndicator is not abstract and does not override abstract method getContextMap(ApplicationUser,JiraHelper) in AbstractJiraContextProvider
[ERROR] C:\Users\Nikos\workspace\tutorial-jira-add-content-to-view-issue-screen\src\main\java\com\example\plugins\tutorial\DueDateIndicator.java:[16,4] error: method does not override or implement a method from a supertype

 

i open it from eclipse (platform Version: 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7)

 

and it cant find the class in "com.atlassian" and the classes inside

any help ?

1 comment

I had the same problem. It seems like com.atlassian.crowd.embedded.api.User is supposed to work as a com.atlassian.jira.user.ApplicationUser through some polymorphism but doesn't.

Change

import com.atlassian.crowd.embedded.api.User;

 to

import com.atlassian.jira.user.ApplicationUser;

and change

public Map getContextMap(User user, JiraHelper jiraHelper)

to

public Map getContextMap(ApplicationUser user, JiraHelper jiraHelper) 

 

That worked for me. I'll submit feedback to Atlassian to see if they need to change their tutorial.

Comment

Log in or Sign up to comment
Community showcase
Published in Training & Certification

Introducing Atlassian University Live!

Atlassian University is committed to providing the best training and certification for Atlassian products through on-demand classes, in-person team training, a world-class certification program, and ...

281 views 6 16
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you