cancel
Showing results for 
Search instead for 
Did you mean: 

Create rule base on parents space name ?

cboehnel
Champ in-the-making
Champ in-the-making
Hello,
I want to create a rule. This should fire for an item when the space name (parent of the item) is like  "XYZ"
The condition for a specific text in a property should be like this:
parent.name like "XYZ"

Unfortunately I cannot administer this. The web-client changes the property "parent.name" to "cmSmiley Tonguearent.name" and it does not work.

Thanks !!!
4 REPLIES 4

rafaelscg
Champ on-the-rise
Champ on-the-rise
You can use:

cm:name like "XYZ"

OR

cm:title like "XYZ" if you have same value of name

If you're using custom metadatas you can try

custom:myprop like "XYZ"

Let me know if this works for you.

cboehnel
Champ in-the-making
Champ in-the-making
Thanks for your suggestions!

Unfortunately it doesn't work because cm:name adresses the name of the document. What I need is a rule (to inherit) which has an action adresses the parent.name of the document (the space which contains the document).

rafaelscg
Champ on-the-rise
Champ on-the-rise
Oh, sorry, i understand now.
I'll made some tests on here and if i find a solution, i can post here ok?

Really sorry for cant help you now!

rafaelscg
Champ on-the-rise
Champ on-the-rise
I believe you can do this using Javascript. This is an easy way to perform this type of condition.