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

[ERROR] building plugin while following tutorial

Nikos Kalogerakis June 14, 2017

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

Comment

Log in or Sign up to comment
TheTimBecker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2018

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.

TAGS
AUG Leaders

Atlassian Community Events