HI ALL
I have some issues in one database.
I have imported that issue in to jira using plugin.But history of that issues is not imported in to jira.
I want to import history of that all issues into jira.
As i understood by reading JIRA Database schema there are two tables for history
1)Change group Table
2)Change Item Table
so i will pulll data from my database by using query.
But how i can insert this data into JIRA by using JIRA API.
Please help me.
Thanks in advance
Ashwini G.
Community moderators have prevented the ability to post new answers.
It is also resolved.
I used external change item and external change group to import the history.
Thanks for help :)
Hi, I would take a closer look at the following classes/methods in JIRA source code:
I think though that you may have problems with importing the original timestamp for given change.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Wojciech Seliga
i have write following code in externalUtils.java.
This is for creating change group values.
pls let me know where i am wrong.
public GenericValue createChangeGroup(User author,Collection<ChangeItemBean> incomingChangeItems,final Issue issue)
throws GenericEntityException {
log.debug("in create change gropu********");
IssueChangeHolder issueChangeHolder = new DefaultIssueChangeHolder();
ChangeHistoryManager changeHistoryManager = (ChangeHistoryManager)ComponentManager.getComponentInstanceOfType(ChangeHistoryManager.class);
if (incomingChangeItems == null || incomingChangeItems.size() == 0)
{
return null;
}
final ArrayList<ChangeItemBean> changeItems = new ArrayList<ChangeItemBean>(incomingChangeItems);
for (ChangeItemBean cib : changeItems) {
ChangeItemBean changeItem = new ChangeItemBean(cib.getFieldType(),cib.getField(),cib.getFrom(),cib.getFromString(),cib.getTo(),cib.getToString());
changeItems.add(changeItem);
issueChangeHolder.setChangeItems(changeItems);
}
GenericValue changeGroup = ChangeLogUtils.createChangeGroup(author, issue.getGenericValue(), issue.getGenericValue(), issueChangeHolder.getChangeItems(), true);
return changeGroup;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Can you tell me in jira database schema the reletionship between changeitem table and changegroup table.
Means i want to know which thing first insert in to Database first change item is created or change group is created in database.
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.
would you like to import the history of each issue in terms of when and who did the transitions and/or changed the fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.