Versions Compared

Key

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

Table of Contents

Scenario

  • If a user is transitioning the workflow of an issue, it's expected that the user has spent some time on the issue.
  • If the user has spent time on the issue, the user should be logging work as part of standard process

We'll show you how to enforce logging work using Power Scripts Scripts™ for Jira; a powerful scripting tool to help automate your Jira.

...

  1. You have Jira Core, Jira Software or Jira Service Desk installed
  2. You have Power Scripts Scripts™ for Jira installed

Implementation

Create the following script in SIL SIL™ Manager and apply it as a validator on a workflow transition.

Stashincludebyfilepath
repoSlug
Bitbucket file macro
showLineNumberstrue
titleRequireUserWorklogToTransition.sil
url//anovaapps.atlassian.net/servicedesk/customer/portal/2://bitbucket.cprime.io/projects/CAP/repos/sil-script-librarybranchIdrefs/heads/master
projectKeyCAP
filepathraw/Workflow_Validators/RequireUserWorklogToTransition.sil
progLangjavascript
applicationLinke1651377-b920-3831-9722-2aeff6dc52cd?at=refs%2Fheads%2Fmaster
syntaxHighlightingJavaScript

See also