We need help in configuring a couple of fields in Jira. We have admin rights. Please let me know if this would be possible.
1.date to UAT – Field exists. We want this to be auto filled once a story is moved to UAT by Developer
2.Date story moved from “to do” to “In-progress” . we need to create a date field to capture this automatically.
Please let me if there are any chances to do it. Please do needful.
Regards
Uday.
Hi @uday ,
You would need any of the plugins like JWME/script runner/JSU
1. Add a post-fuction to the UAT transition to update/set field value to current date.
2. Create a new field in your instance - Date story moved
https://confluence.atlassian.com/adminjiraserver/adding-custom-fields-1047552713.html
and create a postfuntion as mention in 1, but for To Do --> In Progress.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@uday ,
Use the code in the postfunction
import com.atlassian.jira.component.ComponentAccessor
import java.sql.Timestamp
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def dateCf = customFieldManager.getCustomFieldObject("customfield_12345") // Date time fields require a Timestamp
issue.setCustomFieldValue(dateCf, new Timestamp((new Date()).time))
customfield_12345 should be custom field id
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.