Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

courselearner2022 June 12, 2022

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
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2022

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!

courselearner2022 June 12, 2022

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.

courselearner2022 June 19, 2022

Thank you.This solution really worked well 

0 votes
Answer accepted
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2022

@courselearner2022 -

Welcome to the community.  Just as @Walter Buggenhout 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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 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.

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events