Setup jira integration via script


I’m about to setup a GitLab/Jira integration as described in this tutorial: GitLab Jira integration | GitLab, not the one with the “developer panel”.

It worked just fine and the comments are posted to Jira on GitLab commits.
Is there a way to script this setup? Obviously these settings are not stored in gitlab.rb as the file remained unchanged. Maybe there are some rails-console commands or other ways to automate this setup?
Many thanks in advance!

Best regards

P.S. we run an omnibus GitLab installation on AWS EC2