Jump to content

adding sorted notes


Tim Edelmann

Recommended Posts

Hey ftrackers, 

 

we recently tried to add notes to a task in a sorted order. We read a number of question from a json which looks like this: 

[
	{
		"index": 1,
		"content": "Q1"
	},
	{
		"index": 2,
		"content": "Q2"
	},
	{
		"index": 3,
		"content": "Q3"
	},
	{
		"index": 4,
		"content": "Q4"
	}
]

..and we would like these questions, to appear in the order given by index. But for some reason, we always get the order visible in attachment: ftrack_question_ordering.PNG

 

Could this be the same problem we have with custom attributes being not sorted?

 

 

Thanks in advance

 

 

Tim

ftrack_question_ordering.PNG

 

EDIT: The note, which was altered latest is shown upmost automatically, which implies, that we cannot change the order, right?

Link to comment
Share on other sites

22 hours ago, Tim Edelmann said:

EDIT: The note, which was altered latest is shown upmost automatically, which implies, that we cannot change the order, right?

Yes, the latest replied to note will be at the top.

About ingesting them in a sorted manner the problem is likely that they are added too fast or at once. A possible solution is to explicitly set the note['date'] to order them. E.g. by offsetting them in seconds.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...