[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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

78 views 0 5
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