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.
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.
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.
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.