Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Requirement in Script Runner -Not sure if I have to use script runner


Hello All,

I have the following requirement.

In the ITSM sample , lets assume that I have created a field called  Configuration with following values in the check box and the expected outcome / task is to automatically 

select for. eg MoneyTransfer checkbox should automatically checked / ticket when certain condition in the field Organization is matched.

If the organization is PUREPATH, then in the configuration field, MoneyTransfer should be checked automatically. Please let me know how this can be achieved.

Appreciate your quick assistance

Screenshot 2022-06-12 092158.png



3 answers

3 accepted

1 vote
Answer accepted

Hi @courselearner2022 and welcome to the Community!

On cloud, you should be able to pull this off with the built-in automation features, as long as you are ok with the selections being done after you create an issue, not while your user is editing information on screen.

You would basically need an automation rule with following key components:

  • Trigger: issue created
  • Conditions: the values selected in your organization or select field
  • Action: edit issue, where you can update the fields you want

You can have a look at many examples of automation rules in the Public Template Library. I'm sure you'll find inspiration there for the more complex conditional logic you might be after.

Dynamic updates on screen were something you could do on the server/DC platform with Scriptrunner's Behaviours features, but these are not available (yet) in the cloud.

Hope this helps!

Sorry. My fault.

I am not using Deployment Type Cloud for my project and I would like to explore how I can achieve it via Script runner / Listener / Groovy script.

Thank you.This solution really worked well 

0 votes
Answer accepted

@courselearner2022 -

Welcome to the community.  Just as @Walter Buggenhout _ACA IT_ recommended, using Automation for Jira is probably the best solution for the CLOUD env for right now.  What is your env that you want to use Script Runner for Jira?  Currently, for the CLOUD env (due to Atlassian has not yet provided the framework where one can import library into the custom scripting for auto populating a field based on other field's value), thus it is not possible to achieve it with Script Runner for Jira in the Cloud env as of today.  In the Data Center (SERVER env), it is possible.

I know that Script Runner for Jira vendor (Adaptavist) is working closely with Atlassian actively to bring the functionality back into the product for the CLOUD env.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

0 votes
Answer accepted
Fabian Lim Community Leader Jun 12, 2022

Hi @courselearner2022

It cannot be achieved right now in cloud while you are filling the forms.  But I believe this functionality will be available soon from scriptrunner. Contact them directly for the roadmap.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

188 views 0 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you