Forums

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

Enforce code pushes

Ryan Reese
May 22, 2023

I'm the manager of a group of front end developers at Finalsite. We try to encourage our developers to push once daily, but it's never been something we've been able to enforce. Is there any tool that would allow me as a manager to ensure my developers are pushing the code on their projects? Right now, my only option is to go through the bitbucket projects of all my developers and see if code is pushed at the EOB. It's not realistic due to timezones and chasing down the individual projects my team works on. What can I do?

1 answer

1 accepted

0 votes
Answer accepted
Mark Markov
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.
June 29, 2018

Hello @Swarna Radha

Try this

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.event.type.EventDispatchOption
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.user.ApplicationUser

CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager()

def cField = customFieldManager.getCustomFieldObject("customfield_10601")
ApplicationUser user = issue.getCustomFieldValue(cField) as ApplicationUser
issue.setAssignee(user)
ComponentAccessor.getIssueManager().updateIssue(user, issue, EventDispatchOption.ISSUE_UPDATED, false)
Swarna Radha
Contributor
June 29, 2018

Hi Mark,

It is the same. It is making reporter as assignee instead the value in the custom field. 

Note: when i am using the custom field on Create

 

Thanks

Swarna Radha
Contributor
June 29, 2018

test

Swarna Radha
Contributor
June 29, 2018

test

Mark Markov
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.
June 29, 2018

It looks like something else changes assignee.

Is this postfunction? try to move it on last position.

Swarna Radha
Contributor
June 29, 2018

It is a post function. Now it is working after move it on last position ..

Thanks

Mark Markov
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.
June 29, 2018

You re welcome!

If this helps you, please mark answer as accepted :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events