Forums

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

How to receive a change items by a change group?

Michael I.
Contributor
January 17, 2012

My listener can call method IssueEvent.getChangeLog(), that returns a generic value for entity named "ChangeGroup". How can I get all change items from this group through JIRA API?

1 answer

1 accepted

2 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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 Leaders.
January 17, 2012

From the GenericValue, get the id which will be the ChangeGroup id. Use the OfBizDelegator to find all changelists using that id. I do,

delegator.findByAnd("ChangeList",EasyMap.build("group",id))

You can iterate over the changelists and find the newvalue, oldvalue, newstring and oldstring for each of the changes.

Michael I.
Contributor
January 18, 2012

Yes, I`ve implemented this so, but I thought that it`s another solution exists. Thank you for answer.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events