Hi Community,
I'm trying to identify Development project issues that are blocked by Maintenance project issues. My idea is to use a custom field on the Maintenance issues to mark which Development project is affected.
Here’s the setup I’m considering:
The rule I want to implement is:
When an issue link of type "is blocked by" is created from a Development issue to a Maintenance issue, the Maintenance issue should automatically update its Project Name field to include the name of the Development project.
Has anyone implemented something similar using automation or ScriptRunner? Any tips or examples would be greatly appreciated!
Thanks in advance!
Hi,
I was able to do something like that, but with some remark: You will need a Multi-Select Field with the EXACT project names you want included. You will need to maintain this field.
Why? Because the project picker is only Single select and you want to tag multiple projects on a Maintenance issue.
That being said, you will need that field and an automation rule that triggers on work item link created (and in you case on the Blocks link type)
If itemA is blocked by itemB, then the triggeringIssue will be itemB, the destinationIssue will be itemA. So you want the field on itemA to have the project itemB belongs to in it.
In the Edit work item action I use the More options to do an advanced edit:
{
"update": {
"Dev Projects": [
{"add": {"value":"{{triggerIssue.project.name}}"}}
]
}
}
Here Dev Projects is my field with the projects (multi-select). With this you should be able to get it to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.