Re: Creator of transactions on ticket merge

Kevin Falcone <[email protected]>
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Message-ID <[email protected]>
On Wed, Mar 12, 2014 at 12:22:12PM +0100, Kai Blöcker wrote:
>    we have been using RT for quite a while now and are very happy with it. Our current production
>    server runs 4.0.6 from the Ubuntu 12.10 repositories.
> 
>    We intend to use our own implementation of a TimeWorkedReport, that happens to use the same
>    procedure described in [1]http://requesttracker.wikia.com/wiki/TimeWorkedReport, i.e. based on
>    the transactions for each ticket. Unfortunately this part of the implementation strategy does
>    not work:
> 
>    > 4. Was this transaction entered by the user RT_System? If so, it is the result
>    > of a merge operation. Don't count this time and skip to the next transaction.
>    > (The time will be captured elsewhere, under the original user that entered it,
>    > if it originally occurred in this time period of interest).
> 
>    For both the SetLink MergedInto transactions and the SetField TimeWorked transactions the
>    Creator is the user that made the merge, not RT_SYSTEM. My question now is: was this behavior
>    changed before or after version 4.0.6? I could not find a reference to it in the available
>    release notes. Right now there is no way to automatically ignore the transactions that come
>    with a merge as they cannot be identified as such. This unfortunately means that the report
>    can change retroactively and some TimeWorked could be counted twice.

TimeWorked on Merges was sort of a mess in 3.8 and 4.0 and was cleaned
up significantly in 4.2.

Search for 'On Merge' in 
http://bestpractical.com/docs/rt/latest/UPGRADING-4.2.html
to read more about the details and the code in time-worked-history.pl
may help you figure out how to implement what you want on 4.0 until
you can upgrade to 4.2

-kevin

-- 
RT Training London, March 19-20 and Dallas May 20-21
http://bestpractical.com/training
signature.asc (application/pgp-signature, 235 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlMh234ACgkQ0+gKWp5CJQq8WQCeIImbaVhX/CJ788etY9YBX1UR
lJwAoMhvn7uVioR1ukTJZdbf5RW9oMu6
=nhdl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.