Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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.

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

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

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