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

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

523 views 3 19
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