Can we run a script based on the issue transition using Jira automation without ScriptRunner Plugin?
Hi, @Vish Mande - Can you tell us what you want the script to DO? (e.g., Are you trying to send an email? Make a Slack notification? Take an action in GitHub?)
There's a wide variety of things you can do via Jira Automations, Including but not limited to the 3 I listed.
We are currently doing something like this using MuleSoft Anypoint Platform as part of an automated ERP Backoffice Integration solution we are implementing company-wide. A trigger event can come from an outside application via MuleSoft, which will call native Jira Automation and transition an issue to a desired status. This has been setup as one-way, during the Advanced Protoyping phase of our solution. However, two-way software architecture is being utilized so our Jira Automation will work both-ways (i.e.-transitioning an issue to a certain status will sent REST API call to MuleSoft, which will in turn cause a script to execute sending another trigger event back to the desired application and show the status change. (Note: We do have ScriptRunner, and are actively using it as it does make the process easier to implement in the long run!)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Theoretically if you have a public hosting where you can run python or groovy scripts it is possible to expose a REST API and trigger it from Automation for Jira.
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.
Hi ,
Can you give a bit more information about what you are trying to do exactly? Is it a script for doing things inside Jira or Confluence, or something elsewhere? What kind of script? There may be a way to achieve your outcome without a 'trigger script' functionality that people here might be able to advise you on :)
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.
Hi @Karin van Driel , @Aaron Geister
Jira Automation is a pretty flexible and powerful feature when we are doing things inside Jira. But when we want to do things outside Jira and the trigger point is inside Jira then this feature has its limitation or dependence on a third-party tool like ScriptRunner. Bit disappointed that Jira automation itself won't provide this capability. Atlassian may have a reason for this. @Sergei Gridnevskii has mentioned another way around/alternate solution.
When we transition the issue from status A to B then trigger the automation framework in another application or perform certain actions in any target system/application. Here trigger point transition could be one of the scenarios, there could be multiple trigger point scenarios like updates on the ABC field, match value of the ABC field, etc.
I appreciate your time and attention here :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Firstly Automation for Jira was created by codebarrel and later acquired by Atlassian. So there is something it still omits to as it was a marketplace plugin and later integrated. There are some APIs that marketplace apps cannot hit for example group API for add and or remove users form groups.
So I believe there is a webhook function trigger that can be used to reach outside of jira or cause things to happen within jira from the webhook trigger.
I was also told that Scriptrunner can reach outside of the Jira world to other platforms. I have not tried it as I am using this for other actions internally.
Another suggestion was Mulesoft which is owned by Salesforce. This is a great tool that we are using and starting to implement for ERP CRM integration and for Jira action to other systems and back.
Right now those are the thoughts I have to offer. I am sure you can make it happen. Another tool I do use is BetterCloud which can work with Jira and outside of Jira to most other systems but has some limitations.
I wish you luck.
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.
Assuming your external system allows webhooks, you can trigger one using an automation, but you can also do it from the workflow transition itself.
In the workflow, select to edit the transition you want to leverage and add a Post Function to "Trigger a Webhook," then put the webhook URL in the field provided on the next screen.
If the target system doesn't allow webhooks (and depending on your other tooling and experience), you may be able to use a webhook as an intermediary to trigger your script, which can then act on your target external system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira does not support scripting natively so as a direct answer "no".
However as Jira Cloud does have automation, most of the time you can model the script you were going to run with the available actions/conditions in the automation rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dirk Ronsmans Thanks for the answer, Not sure if Altlassina has this feature in their roadmap, I don't find anything on the community as well about this requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you mean? Automation is already a part of the system.
If you set a transition as your trigger you can easily model a lot of possible scenario's. It won't be a script but more like a low code/no code solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess Atlassian has reasons for that. Nobody knows what you can put in scripts, like bitcoin mining, virus, something else. While graphic blocks are error prone and cannot crash Jira server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dirk Ronsmans I mean script feature with Jira automation. I was looking for a scripting native solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would like to know more of why you want to run a script in automation for Jira when it has low code no code solution and smart values to run pretty much anything you need. unless your trying to hit an end point to do something some where else which is still possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agree. I even managed to parse XML from external server with graphic blocks. It was hard but possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Become an effective Jira admin
Manage global settings and shared configurations called schemes to achieve goals more quickly.
Streamline Jira administration with effective governance
Improve how you administer and maintain Jira and minimize clutter for users and administrators.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.