Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Epic disappears from board when status is changed to Done

Lisa Bowman
April 20, 2023

I have noticed that when the Epic status is changed to 'Done', it is no longer visible on the board - is there any way to change this so it remains visible? This is for a company managed project. TIA.

1 answer

1 accepted

2 votes
Answer accepted
Tarun Sapra
Community Champion
June 6, 2018

You would have to use "RemoteLinkManager" instead, as Jira issue is connected to confluence via remote links and not via normal issue links

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.RemoteIssueLinkManager
import org.apache.log4j.Level
import org.apache.log4j.Logger

Logger log = Logger.getLogger("com.onresolve")
log.setLevel(Level.INFO)

def issue = ComponentAccessor.issueManager.getIssueObject("<your issue key>")
def RemoteIssueLinkManager remoteIssueLinkManager = ComponentAccessor.getComponent(RemoteIssueLinkManager);
def remoteLInks = remoteIssueLinkManager.getRemoteIssueLinksForIssue(issue)

remoteLInks.each {
log.info it.getUrl()
}
zaharovvv_suek_ru
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 7, 2018

Thanks you so much, @Tarun Sapra!

I've just added application name to be defined whether an application name is Confluence:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.RemoteIssueLinkManager
import org.apache.log4j.Level
import org.apache.log4j.Logger

Logger log = Logger.getLogger("com.onresolve")
log.setLevel(Level.INFO)

def issue = ComponentAccessor.issueManager.getIssueObject("<your issue key>")
def RemoteIssueLinkManager remoteIssueLinkManager = ComponentAccessor.getComponent(RemoteIssueLinkManager);
def remoteLInks = remoteIssueLinkManager.getRemoteIssueLinksForIssue(issue)

remoteLInks.each {confl ->
log.debug(confl.applicationName)
}

 

Suggest an answer

Log in or Sign up to answer