Forums

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

Automatically Set Due Date to Jira Server issue using Script Runner

siva
Contributor
June 21, 2022

Hello,

We are using scrip runner plugin in my jira server instance by using this plugin i need to create scripted  custom field that automatically Set display number of days the issue is due in and this scripted custom field is filled manually while creating a issue and then it automatically Set display number of days left. Please help me with script how to achieve this issue.

 

Thanks,

Siva.

 

1 answer

0 votes
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.
June 22, 2022

This isn't going to work

Scripted fields are not enterable, they are calculated

Reporting and searching is not going to be reliable, unless you re-index, or at least view, every issue with your scripted field on it every day just after midnight. 

siva
Contributor
June 22, 2022

@Nic Brough -Adaptavist- 

Thanks for the reply,

Sorry for i wrote the question wrong way actually Due Date field is system field that is manually entered by user while creation of issue. Here i need new script custom field (Due Date Indicator) that calculates how many days left from  Due Date system field. Please help me on this.

 

Thanks,

Siva.

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.
June 23, 2022

I don't think you wrote it incorrectly at all.

Your "number of days left" field is not going to work because of what I said in my original answer.

Suggest an answer

Log in or Sign up to answer