Forums

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

Script Runner Script for automatingdate custom fields based on another date custom field

Gordon Rutherford
Contributor
October 14, 2020

Hi

On creation of an issue, a user is requested to enter the date on a custom field called 'TSV Air Date'

I would like via a post function script that another date custom field 'TSV Photography Deadline' is automatically populated with a date 28 days in advance of the 'TSV Air Date'.

We are trialing Scriptrunner on our instance currently.

Thanks in advance!

Regards

Gordon

2 answers

0 votes
Gordon Rutherford
Contributor
October 15, 2020

@Ravi Sagar _Sparxsys_  Hi Ravi thanks for your input but I am brand new to groovy scripting and I am ok with using an existing script and modifying 'obvious text' to make it work in our instance but not anything deeper. I could not see anything in the Adaptavist library that I could get my head around to do this job - kind of hoped I might find a  script that did exactly what I wanted as it didn't seem too 'left field'. As I am new to this world of custom scripting or groovy scripting but as a site manager do not have the time to become a developer can you commission scripting through Adaptavist or 3rd party developers Ravi?

Thanks

Gordon

Ravi Sagar _Sparxsys_
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.
October 15, 2020

Hi @Gordon Rutherford 

Yes, you can contact us for any custom scripting and someone will get back to you.

Ravi

0 votes
Ravi Sagar _Sparxsys_
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.
October 14, 2020

Hi @Gordon Rutherford 

It can definitely be achieved with ScriptRunner.

You can take a look at various scripts related to date fields here.

I hope it helps.

Ravi

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.7.0
TAGS
AUG Leaders

Atlassian Community Events