Modify

Ticket #8 (new バグ)

Opened 13 years ago

Last modified 13 years ago

チケットシステムとの連携機能

Reported by: okamototk Owned by:
Priority: 通常 Milestone:
Component: Project Keywords:
Cc: 親チケット:

Description

チケットシステムとの連携機能を実装する。
他のチケットシステムでも使えるようにプラグイン可能にしておくとよい。

Attachments

Change History

comment:1 Changed 13 years ago by chris

OpenProjのタスクの作成のサンプルプログラム。

			ProjectFactory factory = ProjectFactory.getInstance();
			Project project = factory.createProject();
			NormalTask parent = new NormalTask(project);
			parent.setName("親タスク");
			parent.setWbs("親WBS");
			parent.setId(1);
			parent.setUniqueId(1);
			parent.setProject(project);
			parent.setProjectId(project.getId());
			...
			NormalTask child = new NormalTask(project);
			child.setName("子タスク");
			parent.setWbs("子WBS");
			child.setId(2);
			child.setUniqueId(2);
			child.setProject(project);
			child.setProjectId(project.getId());
			child.setStart((long)(System.currentTimeMillis()+1000*3600*24*2));
			child.setEnd((long)(System.currentTimeMillis()+1000*3600*24*7));

			Node pn = NodeFactory.getInstance().createNode(parent);
			project.addToDefaultOutline(null,pn);
			Node cn = NodeFactory.getInstance().createNode(child);
			project.addToDefaultOutline(pn,cn);

			project.initialize(false,false);
			project.setBoundsAfterReadProject();

			Environment.setImporting(false);
			project.setWasImported(true);

			final Session session=SessionFactory.getInstance().getSession(true);
			session.refreshMetadata(project);
			session.readCurrencyData(project);
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from (none). Next status will be 'assigned'
The owner will be changed from (none) to anonymous. Next status will be 'accepted'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.