Behaviours Plugin : Component to appear for a very brief moment and then quickly disappear

Environment

  • JIRA 6.4.12
  • ScriptRunner 4.1.3.10

How to reproduce

  1. Add Compontens (e.g. TEST、TEST XYZ)Compontents.png

  2. Setting Behaviours

    Behaviours.png

    def components = getFieldById("components");
    com.atlassian.jira.issue.IssueManager                                      issueManager = com.atlassian.jira.component.ComponentAccessor.getIssueManager();
    com.atlassian.jira.bc.project.component.ProjectComponentManager projectComponentManager = com.atlassian.jira.component.ComponentAccessor.getProjectComponentManager();
    def id = getFieldById("id");
    com.atlassian.jira.issue.Issue issue = issueManager.getIssueObject(Long.parseLong((String)id.getValue()));
    java.util.Collection<com.atlassian.jira.bc.project.component.ProjectComponent> projectComponentList = projectComponentManager.findAllForProject(issue.getProjectId());
    java.util.Map<String, String> fieldOptions = new java.util.HashMap<String, String>();
    for (com.atlassian.jira.bc.project.component.ProjectComponent projectComponent : projectComponentList)
    {
      if (!projectComponent.getName().equals("TEST")) {
         fieldOptions.put(String.valueOf(projectComponent.getId()), projectComponent.getName());
      }
    }
    components.setFieldOptions(fieldOptions);

    tick Remove the "TEST" from the candidate .

     

  3. Create Issue (Compontens: TEST XYZ)
    TEST-1.png

  4. Edit this Issue
    quickly disappear.png

    cross "TEST XYZ" to appear for a very brief moment and then quickly disappear.


    candidate.pngtick  It will be displayed in the candidate.


I have already been selected but will disappear.

This seems also to have disappeared in the partial match.

7 answers

This widget could not be displayed.

Unfortunately screenshot 4 is very small and I can't expand it for some reason. Confluence Questions is really not being that helpful lately.

I appreciate that you have spent time asking this question, but I don't really understand what it is you want to happen.

 

 

 

This widget could not be displayed.

@Jamie Echlin [Adaptavist]

Thanks for keeping in touch.

This problem is that "TEST XYZ" disappears in the editing screen display.

I delete only "TEST". It is output in development log of Chrome.
However, "TEST XYZ" disappears as soon as I opened the issue editing screen.

This widget could not be displayed.
Steven Behnke Community Champion Apr 04, 2016

Wow this is confusing haha. I can maybe interpret a bit.

Foremost, I've found you can expand images by right clicking them and opening them in a new tab. It's a lame workaround though.

Secondly, it seems that Kengo Ohsaki believes they have found a bug, if I am reading this right. They have two Components declared inside their project, "Component" and "Component XYZ."

Expected

They want the behavior to remove "Component". This is intended. tick

Actual

The behavior removes the partial match "Component XYZ." This is unintentional behavior. cross

This widget could not be displayed.

@Steven Behnke

Thank you for your help.

I wanted to relay that.

This widget could not be displayed.
Steven Behnke Community Champion Apr 04, 2016

Glad to help. smile 

This widget could not be displayed.

What browser and version are you using? We can't seem to reproduce this issue with the same versions. The TEST component never appears.

This widget could not be displayed.

Chrome stable(windows,49.0.2623.110 m (64-bit))

The TEST component never appears.

Yes. I want the behavior to remove "TEST",It's not a problem.

This problem is that "TEST XYZ "disappears when I opened the editing screen.

 

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...

526 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