Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments
as preparing for update from 8.36.1 to 8.49, i'm converting our velocity from old to the new velocity.
With the old velocity
#set ($docDao = $applicationContext.getBean("documentDao"))
$docDao.getDocument_DocAttachments($testrun.id) gave me the list of all the attachments from the test run item
#set ($relDao = $applicationContext.getBean("relationshipDao"))
$relDao.getDownstreamDocumentIds($testrun.id) did gave me the list of id from downstream item (documented bugs) associating with the test run item.
but with the new Velocity -
$DocumentSource.getDownstreamDocumentIds and $DocumentSource. .getDocument_DocAttachments
always return a empty array.
These functions work with other item types but just not with test run.
Please advice, with the new Velocity, how can I get the downstream, as well as attachment of a test run.
Thanks much
Comments
-
Lien:
Nice to see you again! Thank you for reporting this, this sounds like a defect we have just filed and is currently under review, where $documentSource.getDownstreamDocumentId no longer returns a value. For your records, the defect key is: SOS-DEF-4843.
The workaround we have found is to: use $documentSource.getRelationshipsForDocument(Integer documentId, boolean isForward) that returns document_document objects and then get the .toDocument.
I am relating your company with this defect and you can look for the defect key in the release notes for when it is fixed. Let me know if this workaround works for you.
Best,
------------------------------
Chloe Elliott
Jama Software
Portland OR
------------------------------
-------------------------------------------
Original Message:
Sent: 06-18-2020 06:17
From: Lien Bäcker
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Hi,
as preparing for update from 8.36.1 to 8.49, i'm converting our velocity from old to the new velocity.
With the old velocity
#set ($docDao = $applicationContext.getBean("documentDao"))
$docDao.getDocument_DocAttachments($testrun.id) gave me the list of all the attachments from the test run item
#set ($relDao = $applicationContext.getBean("relationshipDao"))
$relDao.getDownstreamDocumentIds($testrun.id) did gave me the list of id from downstream item (documented bugs) associating with the test run item.
but with the new Velocity -
$DocumentSource.getDownstreamDocumentIds and $DocumentSource. .getDocument_DocAttachments
always return a empty array.
These functions work with other item types but just not with test run.
Please advice, with the new Velocity, how can I get the downstream, as well as attachment of a test run.
Thanks much
------------------------------
Lien Bäcker
Gira, Giersiepen GmbH & Co. KG
------------------------------0 -
Chloe:
Thanks for the workaround to get downstream items of a test run. It works.
To add additional information to the documented bug, I tested $documentSource.getDownstreamDocumentIds (int id) with different item types. It works with other item types but not for test run. For test run, your suggestion is the solution.
I find two more functions of $documentSource which do not work with the test run item type - to get attachment and to get versions. I'm looking for the workaround for these also.
Item type: Test run
other Item types such as Test Case
To get Attachment using $documentSource. getDocument_DocAttachments (int id)
Always return with empty array
Works
Result [DocumentDocAttachProxy{}]
To get Versions using documentSource. getAllVersionsByDocumentId (int id)
Always return with empty array
Works
Result [VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}]
0 -
Thank you, @Lien, for point out those issues.
We also experienced SOS-DEF-4843 and will see if the other functions are relevant for us as well!0 -
Hi,
Since $documentSource. getDocument_DocAttachments (int id) does not work for test run item type, what would be the workaround to get attachment for test run items?0 -
Lien:
For the Test Runs try using: .getRelationshipsForDocument instead of .getDownstreamDocumentIds.
Let me know if this helps,0 -
Hi Chloe,
the workaround you mentioned did help to get the downstream relationship of a test run.
But I'm also looking for also a function to return the attachment of a test run, since $documentSource. getDocument_DocAttachments (int id) does not work for test runs
0 -
I am also looking for a function to return the attachments of a test run. It there any solution for this yet? Thanks in advance.
I am using Version: Jama Connect 8.74.1
------------------------------
Christopher Nadler
------------------------------
-------------------------------------------
Original Message:
Sent: 06-23-2020 07:35
From: Chloe Elliott
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Lien:
For the Test Runs try using: .getRelationshipsForDocument instead of .getDownstreamDocumentIds.
Let me know if this helps,
------------------------------
Chloe Elliott
Jama Software
Portland OR
------------------------------
Original Message:
Sent: 06-22-2020 23:39
From: Lien Bäcker
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Hi,
Since $documentSource. getDocument_DocAttachments (int id) does not work for test run item type, what would be the workaround to get attachment for test run items?
------------------------------
Lien Bäcker
Gira, Giersiepen GmbH & Co. KG
Original Message:
Sent: 06-19-2020 01:46
From: Anna Henke
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Thank you, @Lien Bäcker, for point out those issues.
We also experienced SOS-DEF-4843 and will see if the other functions are relevant for us as well!
------------------------------
Anna Henke
MeVis BreastCare GmbH & Co. KG
Original Message:
Sent: 06-19-2020 00:52
From: Lien Bäcker
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Chloe:
Thanks for the workaround to get downstream items of a test run. It works.
To add additional information to the documented bug, I tested $documentSource.getDownstreamDocumentIds (int id) with different item types. It works with other item types but not for test run. For test run, your suggestion is the solution.
I find two more functions of $documentSource which do not work with the test run item type - to get attachment and to get versions. I'm looking for the workaround for these also.Item type: Test run
other Item types such as Test Case
To get Attachment using $documentSource. getDocument_DocAttachments (int id)
Always return with empty array
Works
Result [DocumentDocAttachProxy{}]
To get Versions using documentSource. getAllVersionsByDocumentId (int id)
Always return with empty array
Works
Result [VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}]
------------------------------
Lien Bäcker
Gira, Giersiepen GmbH & Co. KG
Original Message:
Sent: 06-18-2020 11:19
From: Chloe Elliott
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Lien:
Nice to see you again! Thank you for reporting this, this sounds like a defect we have just filed and is currently under review, where $documentSource.getDownstreamDocumentId no longer returns a value. For your records, the defect key is: SOS-DEF-4843.
The workaround we have found is to: use $documentSource.getRelationshipsForDocument(Integer documentId, boolean isForward) that returns document_document objects and then get the .toDocument.
I am relating your company with this defect and you can look for the defect key in the release notes for when it is fixed. Let me know if this workaround works for you.
Best,
------------------------------
Chloe Elliott
Jama Software
Portland OR
Original Message:
Sent: 06-18-2020 06:17
From: Lien Bäcker
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Hi,
as preparing for update from 8.36.1 to 8.49, i'm converting our velocity from old to the new velocity.
With the old velocity
#set ($docDao = $applicationContext.getBean("documentDao"))
$docDao.getDocument_DocAttachments($testrun.id) gave me the list of all the attachments from the test run item
#set ($relDao = $applicationContext.getBean("relationshipDao"))
$relDao.getDownstreamDocumentIds($testrun.id) did gave me the list of id from downstream item (documented bugs) associating with the test run item.
but with the new Velocity -
$DocumentSource.getDownstreamDocumentIds and $DocumentSource. .getDocument_DocAttachments
always return a empty array.
These functions work with other item types but just not with test run.
Please advice, with the new Velocity, how can I get the downstream, as well as attachment of a test run.
Thanks much
------------------------------
Lien Bäcker
Gira, Giersiepen GmbH & Co. KG
------------------------------0 -
This problem seems to be fixed.
------------------------------
Alessandro
Systems Engineer
SICK AG
------------------------------
-------------------------------------------
Original Message:
Sent: 11-13-2022 23:44
From: Christopher Nadler
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
I am also looking for a function to return the attachments of a test run. It there any solution for this yet? Thanks in advance.
I am using Version: Jama Connect 8.74.1
------------------------------
Christopher Nadler
------------------------------
Original Message:
Sent: 06-23-2020 07:35
From: Chloe Elliott
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Lien:
For the Test Runs try using: .getRelationshipsForDocument instead of .getDownstreamDocumentIds.
Let me know if this helps,
------------------------------
Chloe Elliott
Jama Software
Portland OR
Original Message:
Sent: 06-22-2020 23:39
From: Lien Bäcker
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Hi,
Since $documentSource. getDocument_DocAttachments (int id) does not work for test run item type, what would be the workaround to get attachment for test run items?
------------------------------
Lien Bäcker
Gira, Giersiepen GmbH & Co. KG
Original Message:
Sent: 06-19-2020 01:46
From: Anna Henke
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Thank you, @Lien Bäcker, for point out those issues.
We also experienced SOS-DEF-4843 and will see if the other functions are relevant for us as well!
------------------------------
Anna Henke
MeVis BreastCare GmbH & Co. KG
Original Message:
Sent: 06-19-2020 00:52
From: Lien Bäcker
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Chloe:
Thanks for the workaround to get downstream items of a test run. It works.
To add additional information to the documented bug, I tested $documentSource.getDownstreamDocumentIds (int id) with different item types. It works with other item types but not for test run. For test run, your suggestion is the solution.
I find two more functions of $documentSource which do not work with the test run item type - to get attachment and to get versions. I'm looking for the workaround for these also.Item type: Test run
other Item types such as Test Case
To get Attachment using $documentSource. getDocument_DocAttachments (int id)
Always return with empty array
Works
Result [DocumentDocAttachProxy{}]
To get Versions using documentSource. getAllVersionsByDocumentId (int id)
Always return with empty array
Works
Result [VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}, VersionProxy{}]
------------------------------
Lien Bäcker
Gira, Giersiepen GmbH & Co. KG
Original Message:
Sent: 06-18-2020 11:19
From: Chloe Elliott
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Lien:
Nice to see you again! Thank you for reporting this, this sounds like a defect we have just filed and is currently under review, where $documentSource.getDownstreamDocumentId no longer returns a value. For your records, the defect key is: SOS-DEF-4843.
The workaround we have found is to: use $documentSource.getRelationshipsForDocument(Integer documentId, boolean isForward) that returns document_document objects and then get the .toDocument.
I am relating your company with this defect and you can look for the defect key in the release notes for when it is fixed. Let me know if this workaround works for you.
Best,
------------------------------
Chloe Elliott
Jama Software
Portland OR
Original Message:
Sent: 06-18-2020 06:17
From: Lien Bäcker
Subject: Velocity report with 8.49 - $DocumentSource.getDownstreamDocumentIds and .getDocument_DocAttachments could not get the Downtream aund Attachment from items with type Test Run
Hi,
as preparing for update from 8.36.1 to 8.49, i'm converting our velocity from old to the new velocity.
With the old velocity
#set ($docDao = $applicationContext.getBean("documentDao"))
$docDao.getDocument_DocAttachments($testrun.id) gave me the list of all the attachments from the test run item
#set ($relDao = $applicationContext.getBean("relationshipDao"))
$relDao.getDownstreamDocumentIds($testrun.id) did gave me the list of id from downstream item (documented bugs) associating with the test run item.
but with the new Velocity -
$DocumentSource.getDownstreamDocumentIds and $DocumentSource. .getDocument_DocAttachments
always return a empty array.
These functions work with other item types but just not with test run.
Please advice, with the new Velocity, how can I get the downstream, as well as attachment of a test run.
Thanks much
------------------------------
Lien Bäcker
Gira, Giersiepen GmbH & Co. KG
------------------------------Alessandro
Systems Engineer
SICK AG0