Forums

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

Edit Jira issue on bitbucket commit event

Martin Søstrand Helgesen
Contributor
December 20, 2018

I want to update a custom field on an issue when a commit is done in bitbucket (with that issuekey as comment, of course)

I see that Jira already has workflow triggers on bitbucket commits, but I cannot seem to find a way to update a field

Can it be done in Jira? Or with some addons like Scriptrunner or others?

 

best regards

Martin Helgesen

2 answers

1 accepted

0 votes
Answer accepted
Martin Søstrand Helgesen
Contributor
December 28, 2018

well, it's not a perfect solution, but I created workflow triggers with transition to the same status (in other words, no transition), and then created a post-function to update the custom field.

it's not perfect, because some people might trigger that transition manually if they find it. but it works

0 votes
Dave Theodore [Coyote Creek Consulting]
Community Champion
December 20, 2018

Check out nFeed. It's intended to do this sort of thing, but it populates data in custom fields that it provides (ie: not the custom field you are already using.) It knows how to speak REST, so I imagine you can probably get pretty close to what you are looking for.

Martin Søstrand Helgesen
Contributor
December 21, 2018

well, it does not give me the trigger/event I want to perform action on. I wish Jira could expose the "commit created" trigger so it could be used with addons like scriptrunner or Automation 

Suggest an answer

Log in or Sign up to answer