Hi,
I'm developing a workflow where 90% is automated.
I'm struggling to link issues back to the grand parent issue.
Workflow:
Create a story
Move story from Backlog to To-Do
Creates UAT ticket automatically and links it(Split from) to the story ticket
Creates Deployment ticket automatically and links it(Is Dependent on) to UAT
I would like to link Deployment ticket to the story ticket(Split from)
Would someone be able to help me achieve this via post functions?
Thanks
Yas
Hello @Yaseen
Since the deployment story is directly linked ot the UAT ticket, thus you would need to use "IssueLinkManager" to get all issues linked with UAT story and then parse the links and identify the story (based on project key) and then link this story with the Deployment ticket- https://docs.atlassian.com/software/jira/docs/api/7.0.4/com/atlassian/jira/issue/link/IssueLinkManager.html
Thanks Sapra, points me in the right direction.
The documentation you linked doesnt seem to work , here is the new link:
Ill post up the code once Im done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sapra,
I am not much of a Dev , this is what I have written so far - would you be able to guide me through the rest?
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.IssueLinkManager
def getLinkID = 0
def issueLinkManager = ComponentAccessor.getComponent(IssueLinkManager)
getLinkID = issueLinkManager.getOutwardLinks(issue.getId())
issueLinkManager.createIssueLink(Issue.getId(), getLinkID, 'Is Dependent on', null, user);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Yaseen
You first have to get the links , check if it contains story and then create the link
some samples
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.