Skip to content

Commit 22d6fb9

Browse files
committed
set default assignee on topic creation
1 parent a159dea commit 22d6fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def update
6565
end
6666

6767
on(:topic_created) do |topic, params, user|
68-
topic.custom_fields["assignee_id"] ||= nil # or any default value
68+
topic.custom_fields["assignee_id"] ||= 0 # or any default value
6969
topic.custom_fields["status"] ||= "new"
7070
topic.save_custom_fields
7171
end

0 commit comments

Comments
 (0)