April 30th 1 PM ET

Git Integration for Jira Self-Managed (Data Center/Server) Documentation

Scripting (Jira git workflow hooks)

ADVANCED DEVELOPERS
Requires Git Integration for JIra v2.20+ or newer.

Use JavaScript as another workflow to operate Jira aside from Smart Commits with Git Integration for Jira app.

VERSION 3.8.0.4+
Debug logging is added to all places, from the initial point down to the script execution.

 

Git Data Processing Age Limit (General settings)

The scripting feature now uses the global setting instead of hardcoded value (1 week).


Set the value according to your organization’s requirements. The default value for this setting is 14 days.

The commits or pull/merge requests are processed by Git Integration for Jira app if they are within the maximum age value (in days) relative to the time of reindexing. In other words. the age of commits/PRs is counted down from the moment when Git Integration for Jira app has started to process them for the first time. Otherwise, they are skipped from processing.

The commits are also compared against on-commit.js script file creation timestamp and if they are found to be older than the time of reindexing minus the maximum age value, they are skipped from processing.

The pull/merge requests are also compared against the creation timestamp of the following script files:

  • on-merge-req-created.js
  • on-merge-req-updated.js

If they are found to be older than the time of reindexing minus the maximum age value, they are skipped from processing.

The Git Integration for Jira app checks for their timestamps, takes the lowest one of them (the earlier one), and then uses it for comparison.

For more information about this feature, commands and debugging, see external page Git Integration for Jira: Git Workflow Hooks.

 


Prev: Smart commits General setting

Next: Repository browser

Have feedback about this article? Did we miss something? Let us know!
On this page