Forums

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

Geeting Illegal character in path error while updating Due date from Script runner

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
July 18, 2023

I'm just browsing in Built scripts of Adaptavist script runner plugin .

i'm trying to update Due date of issue through the script ,please find script in attachment.

 

but I'm getting this illegal character in path error .can someone please help ?

Due Date script.PNGscript error.PNG

2 answers

1 accepted

0 votes
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
July 18, 2023

Hi @CHINNAMUTHEVISAI.SATYANARAYANASHARMA

From the code screenshot you provided, you have declared your issue key as:

def issueKey = "<STPS-109>"

This is incorrect.

Please remove the lesser than and greater than symbols, i.e. < and > from the issue key and declare it as:-

def issueKey = 'STPS-109'

and see if the error persists.

Thank you and Kind regards,

Ram

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
July 18, 2023

Hi Ram,

Thanks it worked . actually I'm learning script runner Just now .
So pardon me if its a silly question to ask.

Ram Kumar Aravindakshan _Adaptavist_
Community Champion
July 18, 2023

Hi @CHINNAMUTHEVISAI.SATYANARAYANASHARMA

No worries; everyone learns from their mistakes.

Glad to hear the solution worked. :-)

Thank you and Kind regards,

Ram

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
July 18, 2023

Can you please let me know what are some good resources to learn this coding in script runner ?

Ram Kumar Aravindakshan _Adaptavist_
Community Champion
July 18, 2023

Hi @CHINNAMUTHEVISAI.SATYANARAYANASHARMA

For documentation, I suggest going through the ScriptRunner for Jira Cloud docs.

And for example codes, I suggest you take a look at the Adaptavist Library.

Thank you and Kind regards,
Ram

1 vote
Nic Brough -Adaptavist-
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.
July 18, 2023

You have not given us the part of the error message that is telling us what the problem is.

If you want an answer to this, we're going to need to see the whole error message.

(i.e. don't do screenshots, give us the plain text of the whole of the error)

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
July 18, 2023

Issue is resolved . i removed < and > sysmbols from issue key and its worked.
but can you help me out to find good resource to learn script runner in cloud ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events