Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,408
Community Members
 
Community Events
168
Community Groups

How to use Interface IssueManager ?? to find related Issue

Hi I need help

I want(I found) to use IssueManager to find all related issue with my issue test-123

link:  https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/IssueManager.html

 

Mabye : getEntitiesByIssueObject(String relationName, Issue issue)Get a list of entities (versions, components etc) related to this issue.

I have difficulty to read in IssueManagerApi

---------------------------------------------------------------------------------------

Or .... before I find How to find all name attachement (works)

def box2 = getFieldByName("test2")
def key2 = getUnderlyingIssue().getAttachments()
Object obj
String objValue = " "

Iterator itra = key2.iterator()

while(itra.hasNext()) {
obj = itra.next()
objValue = objValue.toString() + " " + obj.getFilename().toString()
box2.setFormValue(objValue.toString())
}

mmmm ???

def box2 = getFieldByName("test2")
def key2 = mmmmm.getRelatedIssue()???
Object obj 
String objValue = " "

Iterator itra = key2.iterator()

while(itra.hasNext()) {
obj = itra.next()
objValue = objValue.toString() + " " + obj.getnameIssue()???.toString() 
box2.setFormValue(objValue.toString()) 
}

 

 

1 answer

or mabye in this direction

 

import com.atlassian.jira.component.ComponentAccessor

def box2 = getFieldByName("test4")
def key2 = ComponentAccessor.getIssueLinkManager().getIssueLinks(related???)

not this way ... Forget

i want an array of related issue not an array of link or something like that ...

:(

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events