Forums

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

we are planing to configure a couple of field in jira.

uday
Contributor
June 10, 2021

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.

 

1 answer

1 accepted

2 votes
Answer accepted
Niranjan
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 10, 2021

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.

uday
Contributor
June 10, 2021

Hi @Niranjan 

Thanks for your help ,

 we have script runner plugin.

But I am not able to see the postfunction update/set feld value to current date. please Will you explain it little bit more how to do.

 

regards

uday

Niranjan
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 10, 2021

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

 

https://community.atlassian.com/t5/Adaptavist-questions/ScriptRunner-How-to-update-current-date-on-custom-field-using-on/qaq-p/697370

 

customfield_12345 should be custom field id

Suggest an answer

Log in or Sign up to answer