Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use Interface IssueManager ?? to find related Issue

Aurélie Geoffroy November 26, 2018

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

Suggest an answer

Log in or Sign up to answer
0 votes
Aurélie Geoffroy November 26, 2018

or mabye in this direction

 

import com.atlassian.jira.component.ComponentAccessor

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

Aurélie Geoffroy November 26, 2018

not this way ... Forget

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

:(

TAGS
AUG Leaders

Atlassian Community Events