Hello there. I'm looking if there is a way to edit or update a workflow post function from gitlab. In our SCM we've activated Jira integration and it work well. We've a dedicated repository to versioning and save our custom workflows but when we need to edito or update an existing workflow, we have to change code directly inside the workflow post function and aftare, copy&paste the code inside our gitlab repository to maintain a kind of backup or just to consult the post function code quickly.
Is there a way to edit the workflow post function code by pushing it in our SCM instead of edit on Jira and copy&paste on gitlab? Thanks
Thanks to all! I'll try to check in the API documentation. As @Craig Nodwell told, I've the same scenario cause I just need to version/save/edit post functions script on Gitlab. Being that scriptrunner works via rest api, I strongly believe that this process can also be implemented via bash. I need to check this doc
Hi @DevOps welcome to the community. We use scriptrunner in our instance, it allows us to apply our workflow customizations to files. We've tied our changes around common build processes, where we modify in the version control system, this triggers a build job that grabs the files and drops them to a script directory in Jira. Jira does not require a restart for these changes to take effect. Perhaps this solution could work for you as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Craig Nodwell and thanks. In my case we do not have scriptrunner but just JMWE app. Do you think that there is a possibility to achive same thing as your scriptrunner with jmwe?
Thanks a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In any case, Craig's solution only saves scripts, not workflows.
Jira Cloud actually has a new experimental REST API to manage complete workflows, you could use it to integrate with Gitlab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JMWE can't do this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Fischer true my solution does not include workflow updates just the scripts that drive their post functions / conditions / validators... and I'm coming from a Server/DC perspective.
@DevOps if JMWE allows your scripts to be saved as files then they can dropped into the /var/atlassian/application-data/jira/scripts directory on the server and your post functions can point there instead of Inline. I'm not familiar enough with the JMWE plugin.
However I did find this in the documentation you might want to have a look.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.