Content
Change the sort direction of comments in work packages *latest comment first
Added by Deleted user over 3 years ago
The comment function in every work package is an important tool to exchange information.
Now the comments are sorted from the oldest to the latest comment, so the user have to scroll down to get to the latest comment.
How can i switch the sort order of the comment function sort from latest comment to the oldest?
Can i change it in the project or system configuration? If yes where?
Do i have to edit files in the backend of OpenProject? Which files i have to edit?
thank you in advance!
Replies (2)
Hi Hans,
the sort order can be defined for each user. Go to My Account > settings (/my/settings) to change it for yourself, or if you need to change the global default (
asc
), use the configuration environment variabledefault_comment_sort_order
to set it to either 'desc' or 'asc' for all users:openproject config:set OPENPROJECT_DEFAULT__COMMENT__SORT__ORDER=desc
Best,
Oliver
Hi team,
I've added the environment variable "desc" and it's not working for me, can you please test on your side and let me know if it's only an isolated case?
Terminal checking if env variable is Ok.
[root@vps-7524850 compose]# docker exec -ti compose_web_1 bash
root@3b10d4e653ed:/app# echo $OPENPROJECT_DEFAULT__COMMENT__SORT__ORDER
desc
But still listing from 1 to n.
Thanks in advance.