diff --git a/devops/scripts/jira_writeback.sh b/devops/scripts/jira_writeback.sh index 95b23a0a..1d605072 100755 --- a/devops/scripts/jira_writeback.sh +++ b/devops/scripts/jira_writeback.sh @@ -142,4 +142,8 @@ add_comment() { -H "Authorization: Basic $AUTH" \ -d "$request" \ "$JIRA_SERVER/rest/api/3/issue/$issue_key/comment" -} \ No newline at end of file +} + +if [[ $# -gt 0 ]]; then # IF function call passed in + "$@" # Call function +fi \ No newline at end of file