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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,641,783
Community Members
 
Community Events
196
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
AUG Leaders

Atlassian Community Events