Remove Links trigger action


(Andrew Harris) #1

Matrix Version: v5.3.4.0

I’m having problems with the Remove Links trigger action.

Ideally, there would be a trigger which was the reverse of Assign User To Groups, but failing that, I’m using Remove Links.

My Condition is based on a page asset, with a get variable, so when it comes to the Action, I use the option to Action On Other Assets, and the Dynamic Parameter of the Current User. So far, so good.

The User group they need to be unlinked from is under a completely different root node in our system, and ideally, I’d be able to point to it in the field: As linked to the Broadcasting Asset, which also resides under the Root Node:, but this doesn’t work.

I only have success when I create another asset to contain the user group, and use that in the Root Node field above, and uncheck the option Only where Candidate Assets are Directly Linked to the Root Node.

I mean, I got there, but it seems crazy to have to create a root node that contains the root node I want to unlink from. I couldn’t go further up the tree, because it’s indiscriminate - it will remove all matching links within the root node.

I did notice that the Assign User To Groups had an option to simultaneously remove other links, which I could probably use somehow, but again, it seems like a workaround where none should be required.

Am I doing it wrong?


(Bart Banda) #2

Yea this whole trigger action is very confusing, we are planning on improving it as part of https://squizmap.squiz.net/matrix/7752

From the bug report:

Basically we need the following done:

  1. Update interface to match the attached mockup (including changes to labels and notes)
  2. If you untick the “Any link value” check box, the input below it will appear, if it is ticked, the input will be hidden from view as it won’t be in affect.
  3. Note the change of wording in the select option for the dynamic parameter list.
  4. Fix bug where you can’t select the root asset ID of the system “1” as the root node value in the trigger action (as described in above in my previous comment).

So the root node thing is a bug and annoying.

I would maybe try and use the Assign To User Groups action and then use the unlink setting and specify the root nodes of the groups you want to get unlinked from?


(Andrew Harris) #3

Cool. As long as I’m not missing some glaringly obvious alternative.
I have the process working, it just seemed unnecessarily obtuse.

Had a look at the proposed interface - still seems a mystery to me, but I’ll try again one day :slight_smile: