Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Template Report Lin...
 
Notifications
Clear all

Template Report Linked items access

5 Posts
2 Users
0 Reactions
1,853 Views
(@yalovali)
Posts: 7
Active Member
Topic starter
 
[#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

 


 
Posted : 04 Aug 2022 16H18
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 04 Aug 2022 16H31
(@yalovali)
Posts: 7
Active Member
Topic starter
 

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.


 
Posted : 04 Aug 2022 16H41
(@yalovali)
Posts: 7
Active Member
Topic starter
 

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
 


 
Posted : 04 Aug 2022 17H45
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 05 Aug 2022 10H49
Share:

Scroll to Top