adding sorted notes
2 2

3 posts in this topic

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2