Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-10-05 21:10:42 +06:00 committed by GitHub
parent ab049862a9
commit 65e0e33279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,10 +58,11 @@ async function updateSubIssues (
*/
export async function issueHTMLPresenter (doc: Doc, control: TriggerControl): Promise<string> {
const issueName = await issueTextPresenter(doc, control)
const issue = doc as Issue
const front = getMetadata(serverCore.metadata.FrontUrl) ?? ''
const path = `${workbenchId}/${control.workspace.name}/${trackerId}/${issueName}`
const link = concatLink(front, path)
return `<a href="${link}">${issueName}</a>`
return `<a href="${link}">${issueName}</a> ${issue.title}`
}
/**
@ -72,7 +73,7 @@ export async function issueTextPresenter (doc: Doc, control: TriggerControl): Pr
const project = (await control.findAll(tracker.class.Project, { _id: issue.space }))[0]
const issueName = `${project?.identifier ?? '?'}-${issue.number}`
return issueName
return `${issueName} ${issue.title}`
}
function isSamePerson (control: TriggerControl, assignee: Ref<Person>, target: Ref<Account>): boolean {