Hi,
I have the following rule which is intended to do the following:
What I am finding is that within the "for each" branch, other than creating the clones all of the actions are applied to the trigger issue.
I can work around this in some areas (for example, changing the link so it addressed the trigger item not the clone. But not for others (circled in red).
Is there a way to avoid this, or do I need to have a 2nd rule which runs on the linked items of the parent and updates the linked clones.
Currently, it is not possible to nest branches. And, because branches on more than one thing process in parallel and asynchronously, you cannot add another branch later in the rule to add the comments to the created work items.
For your scenario, one possible work around is using the Send Web Request action to call the REST API for add comment inside the branch. If you want to try this approach, here are some references to help:
Another possible workaround uses two rules, although that is a brittle approach due to possible synch / outage impacts:
Kind regards,
Bill
@Bill Sheboy - thanks. I was considering the 2nd rule approach based on a trigger from rule 1 once it's cloned for the last option in the list. I really like the API approach though - I will see if I can get that to work first. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to close this out - I got this working using the webhooks. Note this is a service desk project rule. The final rule came out as follows:
What I have run out of time for is really making steps 6 to 8 work. In the end step 8 is just copying all the forms on the source (of which there is always one) - I couldn't get the POST body right and kept getting
{"errors":[{"status":400,"code":"BAD_REQUEST","title":"There was an issue with your request","detail":"1 error found in JSON: (1) /ids(0) should be a UUID"}]}
from this POST body:
{
"ids": [
{
"value": "df656798-1448-45d2-ba9d-e1470d86695e"
}
]
}
If anyone knows what I'm doing wrong on the copy forms POST I'd love to know.
I'd also like to highlight this which got me started down this road.
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.