Example: Transition linked issues in currently active sprint
In our environment we've two projects (A and B). Project A is for our R&D. Project B is a customization shared with the customer, both managed using Agile Sprints. I'd like to be able to add an issue in my Project A sprint and if this issue has one or more links to a Project B issue I'd like to automatically move the linked(s) issue in the Project B active sprint. Is this something we can do with Jira Workflow Toolbox in a reasonably easy way?
It can be done, but you will have to execute a transition at Project A issue. You can add a transition in your workflow for setting or editing Sprint custom field (this can be a reflexive transition, i.e., a transition called "Set/Edit Sprint" that doesn't change status, since source and destination statuses are the same), or you can use other transitions in your workflow, e.g. "Create Issue" transition or any other one.
Let’s suppose that at the moment of creating a new issue at Project A you want to move to “Resolve” status all linked issues of Project B which are in current active sprint. To do it you will have to insert two post-functions into “Create Issue” transition in the workflow used for the issues you are creating in Project A:
Use Copy parsed text to a field post-function to copy the name of the status you want to move issues in Project B to, into virtual field “Ephemeral string 1”:
Use Update issue fields post-function for setting "Issue status" virtual field in linked issues in Project B (project key PROJB) that are in current active sprint using the value stored in "Ephemeral string 1" virtual field:
Text to be parsed is: issuekey in linkedIssues(%{00015}) AND Sprint in openSprints() AND Sprint not in futureSprints() AND project = "PROJB"
Note that:
- %{00015} is field code for "Issue key"
- PROJB is what I suppose is the key of Project B
Once configured, transition "Create Issue" in workflow of issue in project A will look like this:
Other examples of that functions
- Add and remove a single or a set of items from multi valued fields
- Compose dynamic text by inserting field values in a text template
- Creating a Jira Service Desk internal comment
- Creating a Jira Service Desk internal comment on linked issues
- Make linked issues, sub-tasks and JQL selected issues progress through its workflows
- Moving sub-tasks to "Open" status when parent issue moves to "In Progress"
- Parse Email adresses to watchers list
- Set priority for issues that have been in a certain status for longer than 24 hours
- Transition linked issues in currently active sprint
- Transition only a sub-task among several ones
- Using project properties to calculate custom sequence numbers
- Writing a comment to blocked issues when blocking issues are resolved
- Add all assignees of certain sub-task types to a "Multi-User Picker" custom field
- Add and remove a single or a set of items from multi valued fields
- Add current user to comment
- Add or remove request participants
- Add watchers from a part of the issue summary: "Summary_text - watcher1, watcher2, watcher3, ..."
- Assign issue based on the value of a Cascading Select custom field
- Assign issue to last user who executed a certain transition in the workflow
- Automatically close resolved sub-tasks when parent issue is closed
- Automatically reopen parent issue when one of its sub-tasks is reopened
- Calculate the time elapsed between 2 transition executions
- Close parent issue when all sub-tasks are closed
- Combine the values of several Multi-User picker fields
- Compose a parsed text including the "full name" or a user selected in a User Picker custom field
- Compose dynamic text by inserting field values in a text template
- Copy issue labels to a custom field
- Copy the value of a user property into a user picker
- Create a comment in sub-tasks when parent transitions
- Execute transition in epic
- Getting the number of selected values in a custom field of type Multi Select
- Limit the number of hours a user can log per day
- Make a sub-task's status match parent issue's current status on creation
- Make parent issue progress through its workflow
- Moving story to "In Progress" when one of its sub-tasks is moved to "In Progress"
- Moving story to "Ready for QA" once all its sub-tasks are in "Ready for QA" status
- Parse Email adresses to watchers list
- Parsing text from last comment and appending it to issue's summary
- Remove versions selected in a version picker custom field
- Replace certain issue link types with different ones
- Restrict parent issue from closing if it has sub-tasks that were created during a given parent issue status
- Set a Select or Multi-Select field using regular expression to express the values to be assigned
- Set assignee depending on issue type
- Set field depending on time passed since issue creation
- Set priority for issues that have been in a certain status for longer than 24 hours
- Set security level based on groups and project roles the reporter or creator are in
- Transition linked issues in currently active sprint
- Transition only a sub-task among several ones
- Transition parent issue only when certain issue sub-task types are done
- Update Cascading Select custom field with a value of the field in parent issue
- Update checkboxes custom field if a file has been attached during a transition
- Validation on issue attachments
- Validation on MIME types of issue attachments
- Writing a comment to blocked issues when blocking issues are resolved