Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

In Assets/Insight automation the Execute Groovy script action does not recognize Windows path

ThangTN8 December 4, 2023

Issue Summary

In Assets/Insight automation the Execute Groovy script action does not recognize Windows path. 

Steps to Reproduce

  1. Install Jira Service Management 5.11.2-REL-0001 (or any other affected version listed above) on a Windows machine. 
  2. Create an Assets/Insight schema;
  3. On this schema configure an Assets/Insight automation with the Execute Groovy script action;
  4. Enter the absolute Groovy script location in the File path field;
    Example:
    C:\Program Files\Atlassian\Aplication Data\Jira\scripts\somefile.groovy
  5. Save.

Expected Results

Automation will successfully save without any error.

Actual Results

We see the following error on the UI:

Capture.JPG

=> Script file path must be absolute

 

1 answer

1 accepted

1 vote
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2023

Hi @ThangTN8 

Welcome to the community.

I think you are running into the following issue mentioned in JSDSERVER-12219.

One of the work arounds should help you, for the time being.

ThangTN8 December 4, 2023

@Marc - Devoteam Thanks you very much ! 

Like • Marc - Devoteam likes this
ThangTN8 December 6, 2023 edited

@Marc - Devoteam I tried but the automation rule couldn't read that groovy file.

I put my groovy file in: C:/Users/thangtn8/Atlassian/Application Data/Jira/scripts/update_attribute_value.groovy

Is the location of the file wrong?

 

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2023

Hi @ThangTN8 

See the liked issue and take the steps described in WO 1 or WO 2

There is nothing wrong with your path, but it is not recognised an there is nothin wrong with the location.

Please read the information on the issue linked in my previous post.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, atlassian community, journeys for jira service management, journeys for jsm, eap jsm atlassian, early access program atlassian, early access program journeys atlassian, early access program journeys jira service management, join atlassian eap

Join the Early Access Program (EAP) - Journeys for Jira Service Management 🚪

Journeys is a brand new feature in Jira Service Management that helps you streamline various processes in your organization that may cross multiple departments, such as employee onboarding or off-boarding that require action from different teams. ✨

Join the EAP →
AUG Leaders

Atlassian Community Events