Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,676
Community Members
 
Community Events
165
Community Groups

Automatically Set Due Date to Jira Server issue using Script Runner

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

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. 

@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.

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
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,121 views 34 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you