DnRuban / Taskhelper

Telegram bot for managing tasks
0 stars 1 forks source link

Use the first user tag as the executor (assignee) if none is specified in the last line #78

Open Lebed02 opened 2 months ago

Lebed02 commented 2 months ago

If there is no assignee in the last line, then the first user tag in the rest of the ticket text is the assignee and should be duplicated in the last line. Only if there is no user tag anywhere in the ticket text or in the last line, only in this case the default assignee set in the settings will be assigned as the assignee.

If there are user tags in the text and no tags in the last line, the first tag in the text means who the ticket is assigned to, and the rest is CC, and all of them are copied to the last line

An example of a ticket if you type this text: test #aa test

The ticket should be like this: _1. test #аа test

о #аа #п_

DnRuban commented 2 weeks ago

Updated user tag copying functionality to assign ticket to the first found user if there is no user tags in last line.