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
Try to add to the end of your script:
ComponentAccessor.getIssueManager().updateIssue(userwitheditpermissions, issue, EventDispatchOption.ISSUE_UPDATED, false)
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can not see how you set value for the userwitheditpermissions variable
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.