Timeline Actions

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
OzielBr
Posts: 6
Joined: 15 Feb 2018, 13:00

Timeline Actions

Post by OzielBr »

Good Morning,

One question, what actions appear on the timeline? I am performing some tests, changing the description and title of some bugs, but in the timeline does not show that the bug has been updated.
Thanks.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Timeline Actions

Post by atrol »

Snipped from function timeline_events that might answer your question.
Changing description or title is not treated by the code

Code: Select all

		switch( $t_type ) {
			case NEW_BUG:
				$t_event = new IssueCreatedTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id );
				break;
			case BUGNOTE_ADDED:
				$t_bugnote_id = $t_history_event['old_value'];
				$t_event = new IssueNoteCreatedTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, $t_bugnote_id );
				break;
			case BUG_MONITOR:
				# Skip monitors added for others due to reminders, only add monitor events where added
				# user is the same as the logged in user.
				if( (int)$t_history_event['old_value'] == $t_user_id ) {
					$t_event = new IssueMonitorTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, true );
				}
				break;
			case BUG_UNMONITOR:
				# Skip removing other users from monitoring list, only add unmonitor events where removed
				# user is the same as the logged in user.
				if( (int)$t_history_event['old_value'] == $t_user_id ) {
					$t_event = new IssueMonitorTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, false );
				}
				break;
			case TAG_ATTACHED:
				$t_event = new IssueTagTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, $t_history_event['old_value'], true );
				break;
			case TAG_DETACHED:
				$t_event = new IssueTagTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, $t_history_event['old_value'], false );
				break;
			case NORMAL_TYPE:
				switch( $t_history_event['field'] ) {
					case 'status':
						$t_event = new IssueStatusChangeTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, $t_history_event['old_value'], $t_history_event['new_value'] );
						break;
					case 'handler_id':
						$t_event = new IssueAssignedTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, $t_history_event['new_value'] );
						break;
				}
				break;
			case FILE_ADDED:
			case FILE_DELETED:
				$t_event = new IssueAttachmentTimelineEvent(
					$t_timestamp,
					$t_user_id,
					$t_issue_id,
					$t_history_event['old_value'],
					$t_type
				);
				break;
		}
Please use Search before posting and read the Manual
OzielBr
Posts: 6
Joined: 15 Feb 2018, 13:00

Re: Timeline Actions

Post by OzielBr »

Ok,
Tks Atrol.
Post Reply