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.
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.
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.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork? We've compiled a list here, along with...
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!
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