Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to maintain the Gap between the development Task Completed to QA Task Completed

Durga Solse
Contributor
April 7, 2023

In Jira software, I am unable to maintain the Gap between the development Task Completed to QA Task Completed

when the user story completed at that time this task will assign to the development team

the development team completed the task and assign it to the QA team 

then the Development team completed the task 

so in these cases how to maintain the Development Task Completed to Tester Task Completed Date 

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 28, 2018

Try to add to the end of your script:

ComponentAccessor.getIssueManager().updateIssue(userwitheditpermissions, issue, EventDispatchOption.ISSUE_UPDATED, false)
Ivelin Ognyanov
May 28, 2018

Thanks a ton for the answer.

Sadly, there is no change with the added line. The user name is still a wrong one.

The script right now:

import com.atlassian.jira.component.ComponentAccessor

def userManager = ComponentAccessor.getUserManager()
def user = userManager.getUserByName("<ivelin.ognyanov>")
def authContext = ComponentAccessor.getJiraAuthenticationContext()

authContext.setLoggedInUser(user)
ComponentAccessor.getIssueManager().updateIssue(userwitheditpermissions, issue, EventDispatchOption.ISSUE_UPDATED, false)

 

Best Regards, 

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 28, 2018

I can not see how you set value for the userwitheditpermissions variable

Ivelin Ognyanov
May 28, 2018

Can you explain with a little bit of a more details? I am kinda new to scripting/java/jira. The whole jira thing was transferred to me recently and I am still kinda learning, otherwise I am just a normal "dumb" windows sys admin without any experience with the above. :)

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 28, 2018

Ok, try like this. If it does not work have a look at the atlassian-jira.log file for errors.

import com.atlassian.jira.component.ComponentAccessor

def userManager = ComponentAccessor.getUserManager()
def user = userManager.getUserByName("ivelin.ognyanov")
def authContext = ComponentAccessor.getJiraAuthenticationContext()

authContext.setLoggedInUser(user)
ComponentAccessor.getIssueManager().updateIssue(user, issue, EventDispatchOption.ISSUE_UPDATED, false)
Ivelin Ognyanov
May 28, 2018

It worked! Thanks a lot for your time and help, appreciated! :)

Suggest an answer

Log in or Sign up to answer