Hello,
We have a custom field "CloseDate" I would like to get the date in this CloseDarte filed when we are closing any tickets. I know we need to add this custom field to a workflow using post-function. I would like to know who can we add this to the workflow. I am using JIRA 7.4.4 Datacenter version. Please help me to achieve this.
Thanks,
The Management teams are asking the data need to be in CloseData only, Due to this, I am looking around it. Is there a way we can get this data to CloseData custom field
You can't do it automatically using postfunction. You will need an addon like Automation or Scriptrunner.
HI Mohamed,
Can I use Mygroovy plugin and write a groovy script to copy the Resolved to a custom field on post function. If yes can you help me with a groovy script?
Hi Mohamed,
I have added the groovy and getting the Close date but its showing as "2 days ago", "1 days ago" and 1 minute ago its not give the data. Please find the Groovy script and the custom field value.
import com.atlassian.jira.component.ComponentAccessor
import java.sql.Timestamp
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def dateCf = customFieldManager.getCustomFieldObject("customfield_10104") // Date time fields require a Timestamp
issue.setCustomFieldValue(dateCf, new Timestamp((new Date()).time))
CloseDate | Date Time Picker |
Can you please help me to solve this issue.
Hi Lokesh,
Sorry but i'm not using this plugin and i don't know groovy. Can you open a new question on the community you might find better help than me
Hi Lokesh,
I think this article might help you with code. I did not test though.
Thanks,
Sanjana
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Get the most out of Jira
Explore the interface and basic Jira terms, then discover how to effectively manage your work.
Learning Path
Atlassian tools and practices for developers
Focus on your development work by using Jira software features and functions efficiently.
Atlassian Certified Associate
Jira Software Essentials certification
Demonstrate proficiency in utilizing essential Jira features and working efficiently with Agile frameworks like Kanban and Scrum.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.