Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

SLA not calculated properly at the time of moving from one project to another project

We are facing an issue in JIRA Service Desk 4.2.3.

When agent is moving the ticket from Project A(HR) to Project B(IPAG) then SLA is not calculated properly as per new request area[i.e. Custom Field Name].

I.e. if new department is having 9 hours of SLA then , ticket should allow agent to resolve ticket for minimum 9 hours .

But in current scenario SLA is calculated on the creation date due to which agents are not getting sufficient time to resolve the tickets.(i.e. 9hours – times spent in previous department).

We had created a script listener for moving the ticket which is provided below:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.index.IssueIndexingService
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.IssueManager
import java.sql.Timestamp
import com.atlassian.jira.component.ComponentAccessor
import java.text.SimpleDateFormat
import java.sql.Timestamp
import java.util.Date
def changeItem = event?.getChangeLog()?.getRelated("ChildChangeItem")
def sourceProject = event?.getChangeLog()?.getRelated("ChildChangeItem")?.find {it.field == "project"}?.oldstring
def targetProject = event?.getChangeLog()?.getRelated("ChildChangeItem")?.find {it.field == "project"}?.newstring
def issue = event.getIssue()if (sourceProject && sourceProject != targetProject){
    issue.setCreated(new Date().toTimestamp())
    def issueIndexingService = ComponentAccessor.getComponent(IssueIndexingService)

Kindly suggest us how to fixed this.


0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events