[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 Join to comment
Community showcase
Monique van den Berg
Published Thursday in Feedback & Announcements

How to earn badges on Atlassian Community

You may have visited your profile and seen a tab called badges. (If not, click on your avatar and View profile > Badges will get you there.)  But what do the happy little circles mean,...

260 views 6 8
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot