Targetprocess

The Targetprocess Developer Hub

Welcome to the Targetprocess developer hub. Here you'll find comprehensive guides and documentation to help you start working with Targetprocess as quickly as possible and support you if you get stuck. Let's jump right in!

Docs

When GitLab Pipeline passes → move to state

JavaScript for action:

const branch = args.body.object_attributes.ref;
// Branch is smth like `us12345`
const match = branch.match(/^us(\d+)/);
if (match && isFinite(match[1])) {
  const entityId = parseInt(match[1]);

  return {
    command: 'targetprocess:MoveToState',
    payload: {
      resourceType: 'UserStory',
      resourceId: entityId,
      stateKind: 'Final'
    }
  }
}

Updated 3 years ago

When GitLab Pipeline passes → move to state


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.