• Community
  • Questions
  • Can I update a custom field (type date) during workflow transition ?

Can I update a custom field (type date) during workflow transition ?


I need to update a date field (deliveryDate) with a specific value during a workflow transition.

Example : deliveryDate = createDate + 14days


I think I need to instal a Jira Plugin, I take a look about "Jira suite utilities" but I don't try it yet.

2 answers

1 accepted

Hi Manuel,

many people actually would like this feature to be implemented. Just have a lokk at this JIRA issue dealing with your problem.


When I was searching for a solution I stumbled upon a plugin which could do the trick but it's not supported and I have never tried to implement it.




This is quite straighforward with the plugin mentioned above. Your script is just:

ComponentManager componentManager = ComponentManager.getInstance()
def customFieldManager = componentManager.getCustomFieldManager()
def customField = customFieldManager.getCustomFieldObjectByName("Delivery Date")
issue.setCustomFieldValue(customField, issue.getCreated() + 14)

Providing this post-function is up at or near the top of the list of post-functions, this is all you need.

I develop my own library to calculate delivery date according to working days and hours. I install JSS to use jython script.

Do you know if there is a way to get a specific workflow transition date using script ?

Something like this:

changeHistoryManager.getChangeItemsForField(issue, "status").find {it.toString == "In Progress"}?.getCreated()

0 vote

The Jira Suite Utilities has some basic functions (that, IMHO, Jira should have off-the-shelf), but doesn't have the more advanced stuff like manipulating fields. Christian's pointer to the scripting plugin is your best bet, as it allows a lot of flexibility.

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot