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())
}
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 ...
:(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.