Behaviours problems: [SR Behaviours] Unrecognised backend ID: resolution

nyxnyx September 5, 2017

I have two behaviours which are build as classes. One is for resolution and is using run() method overwritten from FieldBehaviours class (Object FieldBehaviours:run()) which sets visibility of issuelinks-issues and issuelinks-linktype only if resolution is duplicate and issue has no duplicated issues. That works perfectly. Lets call it DuplicateResolutionBehavior

I've developed another class as behaviour which extends previouse one instead FieldBehaviors because I need to work with resolution field too. It that class there is more than that. Thare are three behaviour methods for resolution field, component field and issue links field. All those behaviors are methods of one class that extends DeuplicateResolutionBehavior. 

I got two problems that are wired for me:

1. when I open Resolve screen where behaviors are about to run and close it - I see in JavaScript console message: [SR Behaviours] Unrecognised backend ID: resolution, [SR Behaviours] Unrecognised backend ID: components, and so on. Looks like it is pooling data from backend but can't find it bacause it is not recognized? Those messages are apearing constantly - to stop that - I need to reload screen. 

 

2. From code when user pick-up duplicated behavior I'm polling data from what is selected on screen (issues) with that code:

private List getLinkedIssuesFromFormField() {

List linkedIssues
log.debug("fIssueLinks.getValue()=" + fIssueLinks.getValue())

if (fIssueLinks.getValue() instanceof String) {

linkedIssues = new ArrayList<String>()
linkedIssues.add(((String) fIssueLinks.getValue()))
log.debug("fIssueLinks.getValue()[String]=" + fIssueLinks.getValue())
} else {

linkedIssues = (List<String>) fIssueLinks.getValue()
log.debug("fIssueLinks.getValue()[List<String>]=" + linkedIssues.toListString())
}
return linkedIssues
}

 In log file I see:

fIssueLinks.getValue()[String]=

which means that fIssueLinks.getValue() is instanceof String but getValue is empty - but I've inputed data for that. 

What I'm missing?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events