While doing the automation for creating . I have 2 mandatory fields as start date and due date . For start date i have used {{now}} but for due date it should be as per the time to done SLA . How to configure this ,can anyone help me with the Query.
Hi @Prabhashankar Rai ,
Welcome to the community!
Unfortunately this feature does not exist at the moment. There is an open feature request for it here: https://jira.atlassian.com/browse/JSDCLOUD-174
If you need to calculate the duedate for your other issue, you would be able to do it by using the different goals in the SLA to calculate the difference in dates yourself (using conditions in your rule).
It's dirty and will require a lot of maintenance whenever you change SLA goals, but I think it is the only way.
- Tessa
Hi @Prabhashankar Rai ,
You just created a new answer instead of following a thread, I will answer your question here so it stays together ;)
You would need to create a condition for each goal and calculate the dates yourself.
You can calculate with dates like this: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
So for example if you have the following goals:
- issuetype = incident AND priority = high -> 8h (24/7)
- issuetype = incident AND priority = low -> 24h (24/7)
You would need to do the following calculations:
- add the goal to {{issue.created}} (assuming the SLA started when the issue was created) - convert it from date-time to date
- use it as input in the due date field.
So for your goals the smart values would be:
- 8h: {{issue.created.plusHours(8).jiraDate}}
- 24h: {{issue.created.plusHours(24).jiraDate}}
(!) If your SLA's are not on a 24/7 calendar, it is possible to make different calculations too using functions like toBusinessDay and compareTo, but that would get more complicated.
Look into the date functions and you will see a lot is possible working with those dates.
- Tessa
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.
Hi @Fazila Ashraf @Tessa Tuteleers ,
Thanks for the response.
Can you help me understand how to set the time to done date as my due date. Is this possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to community!
In the automation, you can have if else conditions to validate different criteria which also are applied on your SLAs and then determine what should be the duedate and then trigger the creation?
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.