Link to issues in Sprint

Issue #140 resolved
Mario Cavaciocchi created an issue

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)

  1. Fidel Castro Armario repo owner

    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?

  2. Mario Cavaciocchi 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.

  3. Fidel Castro Armario 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:

    conf-1.png

    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:

    conf-2.png conf-3.png

    Once configured, "Create Issue" transition in "Test" workflow will look like this:

    conf-4.png

    It's very important that "Creates the issue originally" post-function is executed in first place.

  4. Mario Cavaciocchi 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,

  5. Fidel Castro Armario repo owner

    Use the following text to be parsed:

    toString((linkedIssues("is Epic of", linkedIssues("has Epic")) EXCEPT issueKeysToIssueList(%{00015})) UNION linkedIssues("has Epic"))
    
  6. Mario Cavaciocchi 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}))

  7. Fidel Castro Armario 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:

    conf-1.png

    "Sprint" field code depends on each particular JIRA instance.

  8. Log in to comment