alternatively: can due date be set 'creation date + 5 days' (not dependent on severity)
I made a workaround with several transitions (Open->Open) but it can set only the Remaining estimate.
There is already an answer at https://answers.atlassian.com/questions/27052/customize-priority-based-on-custom-field
It's not voted but it looks like it works
Its now voted , and even you can vote it ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could do it with Javascript on the screen, which would trigger on the Severity field being populated, then calculate and populate the Due Date field with a value.
<script type="text/javascript"> AJS.$(document).ready(function() { severityField = AJS.$("#customfield_10xxx"); dueDateField = AJS.$("#duedate"); severityField.onchange=function() { dueDateField.value = <calculation for new due date> } } </script>
You could put it in the Description for Severity or Due Date, or in a seperate custom Message field just for javascript, which is what I prefer.
-Cory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cory,
many thanks for the suggestion!
Can you please help me, how can I insert javascript in JIRA? I never done it before. Or if you have a tutorial in the documentation (I didn't found).
Thank you!
Regards,
Rumi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rumi,
If you read through another post I made, with instructions on how to use Javascript, it should get you started:
https://answers.atlassian.com/questions/38541/show-text-field-based-on-value-of-check-box?page=1
You'll need to do some research to determine how to write in Javascript the algorithm you need to calculate the desired Due Date. There's lot of examples out there on the web, so should be fairly easy to find.
One piece of info about the javascript code I provided above: AJS is Atlassian's javascript library. $ is referencing jQuery. If you were writing the same thing on an application other than JIRA, and jQuery was available as a resource, you would drop the 'AJS.'. You could also replace the '$' with 'jQuery'. For example, 'jQuery(document).ready(function() {'. Hopefully that helps you compare this code with what you're going to see when you start searching for javascript code.
Let me know if you get stuck.
-Cory
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.