Forum

Template Report Lin...
 
Notifications
Retirer tout

Template Report Linked items access

5 Posts
2 Utilisateurs
0 Reactions
1,809 Vu
(@yalovali)
Posts: 7
Active Member
Début du sujet
 
[#8395]

Hello,
Is there a way to access a product's ProductVersion's->Target Milestone's Description.
I can access a linked ProductVersion inside product with:

#[link_ProductVersion.refId;block=tbs:row]:[link_ProductVersion.ref2Name]-([type.name])

But how can I access the product's productVersion's targetMilestone name in a table.

Best Regards
Yasin

 


 
Posté : 04/08/2022 4:18 pm
(@babynus)
Posts: 14952
Membre Admin
 

The target milestone is not is the link.
You can add a milestone in the links, but then it is just a Milestone, not a Target Milestone.


 
Posté : 04/08/2022 4:31 pm
(@yalovali)
Posts: 7
Active Member
Début du sujet
 

Thanks for your reply.
None of these works for a productVersion in the link items (added manually as a link)
[link_ProductVersion.idMilestone]
[link_ProductVersion.milestone.name]
[link_ProductVersion.milestone.nameProject]

The log file is like:
TinyButStrong Error in field [link_ProductVersion.idMilestone...]: item 'idMilestone' is not an existing key in the array.
TinyButStrong Error in field [link_ProductVersion.milestone.name...]: item 'milestone' is not an existing key in the array.


 
Posté : 04/08/2022 4:41 pm
(@yalovali)
Posts: 7
Active Member
Début du sujet
 

A change in tbs_class.php shows that only fields of a link are allowed for every kind of link.
LINE:  1203              
if (is_array($Value)) {
     $json = json_encode($Value); 
     $this->meth_Misc_Alert($Loc,'-ARR:'.$json,true);
LOG OUTPUT:
{
  "id": 14389,
  "ref1Type": "Product",
  "ref1Id": "681",
  "ref2Type": "ProductVersion",
  "ref2Id": "2685",
  "comment": null,
  "creationDate": "2022-08-04 14:31:29",
  "idUser": "1",
  "nameUser": "_",
  "ref1Name": "ST-User Interface Design",
  "ref2Name": "ST-Ekran çıkartılması",
  "refType": "ProductVersion",
  "refId": "2685",
  "refName": "ST-Ekran çıkartılması",
  "refTypeName": "Product Version",
  "refStatus": "New",
  "refResponsible": "Yasin YILMAZ",
  "refInitialDueDate": null,
  "refActualDueDate": "",
  "refDate": "",
  "refDescription": "Description asda fasf asdfasdfsad"
}

And tbs does not allow us to jump from Product.productVersion.milestone.name style directly.
If a tinybutstrong expert can help us, how to jump from Product to ProductVersion and go further deep recursively. 
It seems that with tbs we can call php functions to go next objects in hyearchy, But it is too complex for me.

If anyone has an example, it will help the community a lot.

I am trying to get full Product Documentation directly from Projeqtor, such as the whole project documentation, including requirements, milestones and component in a single file.
i believe it is a very cool feature...
Yasin
 


 
Posté : 04/08/2022 5:45 pm
(@babynus)
Posts: 14952
Membre Admin
 

It is not a TBS issue.
It is a template report limit.
Read manual : Template report can extract data of one item (detail of element) or list of items.
If cannot get whole structure of a given objets with sub-objects.


 
Posté : 05/08/2022 10:49 am
Share:
Retour en haut