I want to create a scripted date field (FIELD 1) that copies the value of another date field (Due Date).
But, after issue creation, the field FIELD 1 must be LOCKED.
Can someone please help me with how to achieve this . thank you
There are some plugins, I use jira suite utilities (JSU) to copy fields during a transition. JIRA has the ability to copy some fields. I don't know if due date is one of them. The plugins expand the list of fields. You must copy to another date field. JIRA has no way of 'locking' a field. that is why I said to only put the new field on the view screen. The only way to update it would be with a script or post function. A user can't edit it.
With @Ravi Sagar -Adaptavist- 's answer, he mentions a "scripted field" - these are created by Adaptavist's ScriptRunner, and don't contain editable data - they calculate something (even if it's just a copy of the data of another field) and expose it as a field, but it can't be edited, even if you put it on the edit screen.
There are other apps that can do something similar. I'm less familiar with them because I work for Adaptavist too, and hence just use SR 99% of the time.
@Ravi Sagar -Adaptavist-
Hi . I mean to say the new field must copy the first DUE DATE value entered. Later, if the DUE DATE is changed, the new field must NOT take the new value. Basically, the first value copied must be fixed.
We want to do this for some certain tracking purposes.
Now it is clear. In that case use a post function to update the "Original Due Date" custom field not a scripted field. What you are doing is baselining. Also take a look at some apps like BigPicture or Portfolio, these have such features built in but for the time being post function should do the job.
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
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