Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

8- Save your configuration.

Code Block
languagejs
issue?.dueDate ? 
  issue?.dueDate.minusDays(issue.originalEstimate / (60 * 60 * 8)).toISOString() 
  : ""

...

8- Save your configuration.

Code Block
languagejs
issue.changelogs.map(e => e.items).flatten()
  .filter(e => e.field == "assignee").length > 1 ? 
    issue.changelogs.map(e => e.items).flatten()
      .filter(e => e.field == "assignee")[issue.changelogs.map(e => e.items).flatten().filter(e => e.field == "assignee").length - 2].from 
      : ""

Previous Status

Code Block
languagejs
issue.changelogs.map(i=>i.items)
  .flatten()
    .filter(i=>i.field=="status").length>0 ? 
      issue.changelogs.map(i=>i.items)
      .flatten()
      .filter(i=>i.field=="status")
      .map(a=>a.fromString)[0] 
    : ""

Blocking Issues

Code Block
languagejs
issue?.links?.filter(e => e?.type?.inward == "is blocked by" || e?.type?.outward == "blocks")
  .map(e => e?.inwardIssue?.key != issue?.key ? e?.inwardIssue?.key : e?.outwardIssue?.key)

Total Worklogs by Author

Code Block
languagejs
issue?.worklogs?.map(e => ({time: e.timeSpent, author: e.author.displayName}))
  .reduce((result, worklog) => result.set(worklog.author, (result[worklog.author] || 0) + worklog.time), new Map())

Parent Priority

Code Block
languagejs
issue?.parent?.priority?.name

Parent Assignee

Code Block
languagejs
issue?.parent?.assignee?.displayName

Parent Status

Code Block
languagejs
issue?.parent?.status?.name

Comment Authors

Code Block
languagejs
issue?.comments?.map(comment => comment.author?.displayName)

Last Status Author

Code Block
languagejs
issue.changelogs.filter(c => c.items.some(i => i.field=="status"))[0]?.author.displayName

Project Category

Code Block
languagejs
issue.project?.projectCategory?.name

Project Lead

Code Block
languagejs
issue.project?.lead?.displayName

Assignees of Sub-tasks

Code Block
languagejs
issue.subtasks?.map(e => e.assignee?.displayName)

ICE Score

Code Block
languagejs
issue.cfIIIII * issue.cfCCCCC * issue.cfEEEEE

...

Time Spent - Original Estimate Ratio

Code Block
languagejs
issue.timeSpent && issue.originalEstimate ? issue.timeSpent / issue.originalEstimate : 0

...