Hi Derry, thanks for all this. It's great of you to dig into the code
enough to get even this far! You nailed it, and I've included a bit of
an explanation on how I do the roles below:
What happens with the RACI roles is that the cardoProjectRoleList macro
looks to see if there's a role assigned by searching for the GUID, which
has the format of ########-####-4###-####-############ (that's a
standard UUID format) - this is the bareGuid variable which specifies a
person identified by a Tiddler with the field "cardo-guid" having that
value and having the field "cardo-type = person".
Then, finding the bare GUID of the person it's looking for, it looks to
see if there is any Project, or if the particular Project being shown,
has that GUID in it's "cardo-projectteam" field.
If it does, it will be suffixed by "--RoleType", i.e. "--Accountable".
There will be as many entries in this field as there are people assigned
with roles to the Project. i.e.
"e93824f0-c1db-4ae2-8777-4010174e2ea3--Accountable
e18c0856-6fbe-4e6d-8d02-30f94b6c8c58--Consulting
03b35b89-c774-4501-9376-29b0124ecfc4--Consulting"
So from there, it will highlight the RACI role appropriately.
Likewise, the macros that change the roles, add an entry or look for and
delete the right GUID entry, in the Project's "cardo-projectteam"
field.
I saw one instance where the *Person* Tiddler *also* got the field
"cardo-projectteam" written, which it shouldn't. ... that may have been a
remnant in my TW from development work. I can't reproduce it.
What I am seeing right now though, is that any Person Tiddler is showing
they are assigned to a Project properly by name, but it highlights
*all* roles that Project has assigned to it.
In fact, the Project's "cardo-projectteam" field is intact, the Projects
themselves are intact, and each Person's Tiddler is intact, and the
cardoProjectList when invoked on a Project Tiddler shows the list of
People and their roles properly...
it's just that the list of Projects on a Person Tiddler is shown incorrectly.
This is in the "$:/plugins/Cardo/ui/ViewTemplates/types/person/detail" Tiddler:
<<cardoProjectRoleList title:'Ongoing Projects'
status:'Ongoing' includeComplete:'false' newButton:'true'
newTag:'Project Ongoing' personGuid:$(personguid)$ shortButtons:'true'
newProjectLead:$(personguid)$>>
Your fix below does in fact show everything properly, and gets rid of the fouled RACI assignments... Thank you!!
I'll include it with your other tweaks and vis.js stuff a.s.a.p.
Best regards,
David.