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 Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,308 views 0 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