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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

568 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you