Forums

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

Read a file contents using script runner

Chitra Koneti April 8, 2019

Need some suggestions

I need to read file contents which will have the existing value and the new value of a variable

need an approach where in the scriptrunner picks up the file and reads the old value and replace the old value with the new value.

1 answer

0 votes
Antoine Berry
Community Champion
April 9, 2019

Hi,

I would advise to use scriptrunner and groovy built-in functions such as 

https://stackoverflow.com/questions/17395787/how-to-replace-a-string-word-in-a-text-file-in-groovy

Antoine

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events