mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
parent
ab049862a9
commit
65e0e33279
@ -58,10 +58,11 @@ async function updateSubIssues (
|
|||||||
*/
|
*/
|
||||||
export async function issueHTMLPresenter (doc: Doc, control: TriggerControl): Promise<string> {
|
export async function issueHTMLPresenter (doc: Doc, control: TriggerControl): Promise<string> {
|
||||||
const issueName = await issueTextPresenter(doc, control)
|
const issueName = await issueTextPresenter(doc, control)
|
||||||
|
const issue = doc as Issue
|
||||||
const front = getMetadata(serverCore.metadata.FrontUrl) ?? ''
|
const front = getMetadata(serverCore.metadata.FrontUrl) ?? ''
|
||||||
const path = `${workbenchId}/${control.workspace.name}/${trackerId}/${issueName}`
|
const path = `${workbenchId}/${control.workspace.name}/${trackerId}/${issueName}`
|
||||||
const link = concatLink(front, path)
|
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 project = (await control.findAll(tracker.class.Project, { _id: issue.space }))[0]
|
||||||
const issueName = `${project?.identifier ?? '?'}-${issue.number}`
|
const issueName = `${project?.identifier ?? '?'}-${issue.number}`
|
||||||
|
|
||||||
return issueName
|
return `${issueName} ${issue.title}`
|
||||||
}
|
}
|
||||||
|
|
||||||
function isSamePerson (control: TriggerControl, assignee: Ref<Person>, target: Ref<Account>): boolean {
|
function isSamePerson (control: TriggerControl, assignee: Ref<Person>, target: Ref<Account>): boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user