I have a task report with some specific filters, but I want to filter it further based on the Project Owner.
Specifically where the Project Owner is on Team A.
Is this possible using an EXISTS filter?
Something like this:
EXISTS:b:$$OBJCODE=USER EXISTS:b:ID=project:ownerID EXISTS:b:teams:ID=5fb7ef29005e75a06909005821bada90
Solved! Go to Solution.
Views
Replies
Total Likes
OK, bummer. Well, it was worth a try -- so, thanks for doing the legwork.
I still do think that the teammb object is where you need to focus on, but it's up to you which one you end up running tests on, as your original issue is going to be the same for both.
Here is your issue/s:
1) Your no-data errors: I believe this is happening because the syntax on your linking line is incorrect to the point where it just fails to link. i.e. The correct syntax is that "FIELD" shows up immediately after the equals sign, and when this doesn't happen, the line isn't recognized as a linking line, so in effect you just have a blob of text with no link. It gets ignored (you can get the same result by taking the "field:" part out completely, or deleting the linking line completely -- you just get no data.
2) Your Whoops error: You put the "FIELD" right after the equals sign, so it recognizes that it's supposed to link, but throws a whoops error instead..... whhhhy? Looking at the documentation, I'm finding this guide:
EXISTS:A:$$OBJCODE=<Object code of the Linking Object>
EXISTS:A:<Linking Field on the Linking Object>=FIELD:<Linking Field displayed on the Original Object>
EXISTS:A:<Target Object>:<Target Field>=<Your value for the Target Field>
So my guess is (no matter which object you aim an exists filter at), the field going into this spot needs to be on the original object, i.e. your task, rather than trying to call the project from the task.
Next steps? I don't really know what this task report does. You have at least 2 different ways you could go here.
1) can you start over and use a project report, filtering for the owner's team in this way, and pulling in task information via a collection in the view?
OR
2) is this reporting important enough to you that you would put a custom form on all tasks and use a field on that form to pull down the project owner's ID? I've definitely seen universal task forms, and it's reasonably easy to set up by configuring your templates and then forbidding any creation of a project without a template. But it does take that commitment and governance, so that's up to you.
Views
Replies
Total Likes
you can try this
EXISTS:1:$$EXISTSMOD=EXISTS
EXISTS:1:$$OBJCODE=USER
EXISTS:1:ID=FIELD:ownerID
EXISTS:1:teams:ID=update with team ID
EXISTS:1:teams:ID_Mod=in
Views
Replies
Total Likes
it should be possible. What sort of errors are you encountering? I would also encourage you to run a search in the community for "teammb" as there are only 6 posts on it, so you should be able to finagle your way to an answer using this object instead.
Views
Replies
Total Likes
Doing it one way results in a WHOOPS error. Doing it another way results in no error, but also no data.
Views
Replies
Total Likes
without seeing your filter, I can’t comment specifically other than to ask if you see any syntax issues in your no-data code.
Views
Replies
Total Likes
This returns no data:
EXISTS:1:$$OBJCODE=USER EXISTS:1:ID=project:FIELD:ownerID EXISTS:1:teams:ID=*Team ID* EXISTS:1:teams:ID_Mod=in
This returns a WHOOPS:
EXISTS:1:$$OBJCODE=USER
EXISTS:1:ID=FIELD:project:ownerID
EXISTS:1:teams:ID=*Team ID*
EXISTS:1:teams:ID_Mod=in
Views
Replies
Total Likes
My recommendation is that you use the teammb object -- have you given any of that code a try?
Views
Replies
Total Likes
Tried this:
EXISTS:A:$$OBJCODE=TEAMMB
EXISTS:A:teamID=5fb7ef29005e75a06909005821bada90
EXISTS:A:userID=project:FIELD:ownerID
Still no data
Views
Replies
Total Likes
your linking line looks a bit weird. Have you tried flipping it yet?
EXISTS:A:userID=FIELD:project:ownerID
Views
Replies
Total Likes
Yep, whoops error.
Views
Replies
Total Likes
OK, bummer. Well, it was worth a try -- so, thanks for doing the legwork.
I still do think that the teammb object is where you need to focus on, but it's up to you which one you end up running tests on, as your original issue is going to be the same for both.
Here is your issue/s:
1) Your no-data errors: I believe this is happening because the syntax on your linking line is incorrect to the point where it just fails to link. i.e. The correct syntax is that "FIELD" shows up immediately after the equals sign, and when this doesn't happen, the line isn't recognized as a linking line, so in effect you just have a blob of text with no link. It gets ignored (you can get the same result by taking the "field:" part out completely, or deleting the linking line completely -- you just get no data.
2) Your Whoops error: You put the "FIELD" right after the equals sign, so it recognizes that it's supposed to link, but throws a whoops error instead..... whhhhy? Looking at the documentation, I'm finding this guide:
EXISTS:A:$$OBJCODE=<Object code of the Linking Object>
EXISTS:A:<Linking Field on the Linking Object>=FIELD:<Linking Field displayed on the Original Object>
EXISTS:A:<Target Object>:<Target Field>=<Your value for the Target Field>
So my guess is (no matter which object you aim an exists filter at), the field going into this spot needs to be on the original object, i.e. your task, rather than trying to call the project from the task.
Next steps? I don't really know what this task report does. You have at least 2 different ways you could go here.
1) can you start over and use a project report, filtering for the owner's team in this way, and pulling in task information via a collection in the view?
OR
2) is this reporting important enough to you that you would put a custom form on all tasks and use a field on that form to pull down the project owner's ID? I've definitely seen universal task forms, and it's reasonably easy to set up by configuring your templates and then forbidding any creation of a project without a template. But it does take that commitment and governance, so that's up to you.
Views
Replies
Total Likes
That's what I was worried about. Thank you Skye!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies