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 : <span><a href="https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/IssueManager.html#getEntitiesByIssueObject-java.lang.String-com.atlassian.jira.issue.Issue-" target="_blank" rel="nofollow noopener noreferrer">getEntitiesByIssueObject</a></span>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" target="_blank" rel="nofollow noopener noreferrer">String</a> relationName,<span> </span><a href="https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/Issue.html" title="interface in com.atlassian.jira.issue" target="_blank" rel="nofollow noopener noreferrer">Issue</a> 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())
}