Link to issues in Sprint
I want to know if, when i create the issue "Test" in the Sprint XXX, it is possible to automatically create the link "validate" in this issue Test with all issues in the Sprint XXX.
And, a little more complex.
I want to know if, when i create the issue "Test" in the Sprint XXX, it is possible to automatically create the link "validate" in this issue by selecting from each project i want to create the link.
Comments (9)
-
repo owner -
reporter 1) Yes, there is one workflow only for Test type. 2) I dont have a Project Picker custom field. Maybe this complex scenario should not be considerated.
-
repo owner Hi Mario,
I explain you how to accomplish first scenario: "When i create the issue "Test" in the Sprint XXX, it is possible to automatically create the link "validate" in this issue Test with all issues in the Sprint XXX."
To do it you should insert two post-function in "Create Issue" transition in "Test" workflow:
1) Insert "Copy a parsed text to a field" post-function with the following configuration:
Text to be parsed used is:
toString(linkedIssues("is Epic of", linkedIssues("has Epic")) EXCEPT issueKeysToIssueList(%{00015}))
Note that %{00015} is field code for "Issue key".
2) Insert "Create issue link" post-function with the following configuration:
Once configured, "Create Issue" transition in "Test" workflow will look like this:
It's very important that "Creates the issue originally" post-function is executed in first place.
-
reporter Great tutorial.
In this case the link is created with all issues except the actual to the Epic. How do i pick up the Sprint field to fulfill the parsed text?
att,
-
repo owner Use the following text to be parsed:
toString((linkedIssues("is Epic of", linkedIssues("has Epic")) EXCEPT issueKeysToIssueList(%{00015})) UNION linkedIssues("has Epic"))
-
reporter There is no relation of the Epic Field with the Sprint Field. How do i get the sprint field of an issue?
I think it should be something like: toString((linkedIssues("Sprint", %10050 )) EXCEPT issueKeysToIssueList(%{00015}))
-
repo owner Sorry, I understood you wanted also to link "Epic".
In relation to "Sprint", you have a field available in the field code injector, and you can insert in any text to be parsed. Look at the screenshot:
"Sprint" field code depends on each particular JIRA instance.
-
reporter - changed status to resolved
Thanks for your concern Fidel.
I have solved part of my problem.
-
repo owner Don't hesitate to ask for my support if you think I can help you.
- Log in to comment
Has "Test" issue type its own workflow, or does it share workflow with other issue types?
I'm not sure whether I have correctly understood the more complex scenario:
Do you have a "Project Picker" custom field, and issues to be linked to belong only to selected projects?