To enable synchronization between clicking on a segment text in the visual review panel and opening the clicked segment in the segment grid the segment index is needed if the segment is not loaded in the segment grids store.
The segment index is currently not available in this case, and must be loaded from the server. The calculation of the index has to be done like in the prev next calculation.
aleksandar
You can receive the segment position / index now by the following url:
editor/segment/SEGMENT_ID/index
appended with the filter and sort parameters of the ordinary segment grid indexAction call. How to append the filters and sort, see Editor.controller.editor.PrevNextSegment->fetchFromServer
This request returns a JSON:
{
segmentId: the requested segmentId
index: the numeric index of the segment or null
}
If it is a number, you can use this number to jump to the segment as we dicussed it last week.
If it is null, that means the segment is not visible in the grid, mainly because it is filtered out. I don't know if we already discussed a way how to deal with that situation.
Thomas Lauria
added a comment - aleksandar
You can receive the segment position / index now by the following url:
editor/segment/SEGMENT_ID/index
appended with the filter and sort parameters of the ordinary segment grid indexAction call. How to append the filters and sort, see Editor.controller.editor.PrevNextSegment->fetchFromServer
This request returns a JSON:
{
segmentId: the requested segmentId
index: the numeric index of the segment or null
}
If it is a number, you can use this number to jump to the segment as we dicussed it last week.
If it is null, that means the segment is not visible in the grid, mainly because it is filtered out. I don't know if we already discussed a way how to deal with that situation.
This issue can not be moved vertically in the board. So I put it here!
Thomas Lauria
added a comment - This issue can not be moved vertically in the board. So I put it here!
Thomas Lauria
Thomas Lauria
Votes:
0Vote for this issue
Watchers:
1Start watching this issue
Created:
Updated:
Resolved:
{"errorMessages":["jqlTooComplex"],"errors":{}}
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
aleksandar
You can receive the segment position / index now by the following url:
editor/segment/SEGMENT_ID/index
appended with the filter and sort parameters of the ordinary segment grid indexAction call. How to append the filters and sort, see Editor.controller.editor.PrevNextSegment->fetchFromServer
This request returns a JSON:
{
segmentId: the requested segmentId
index: the numeric index of the segment or null
}
If it is a number, you can use this number to jump to the segment as we dicussed it last week.
If it is null, that means the segment is not visible in the grid, mainly because it is filtered out. I don't know if we already discussed a way how to deal with that situation.