Python redmine api: journals.filter usage
<p>For example I have an issue:</p>

<pre><code>issue = redmine.issue.get(100)
</code></pre>

<p>It is possible to get the notes of particular user for this issue?</p>

<p>I found journals.filter method:</p>

<pre><code>issue.journals.filter()
</code></pre>

<p>But I don't know syntax for filter() method.</p>

<p>Can somebody help?</p>

<p>Thanks in advance.</p>

<p>BR, Alex</p>

<p>Redmine API doesn't allow you to do that via direct API calls, so you have to first include journals (otherwise you'll make 2 API calls instead of one) and then iterate over them and check if that record belongs to the needed user, e.g.:</p>

<pre><code>issue = redmine.issue.get(ISSUE_ID, include='journals')

for record in issue.journals:
    if record.user.id == USER_ID:
        print record.id, record.created_at
        print record.notes
        print record.details
</code></pre>

python python-redmine