Hi,
For my automation work i have to fetch comment from JIRA ticket. Please let me know how to fetch comment from jira ticket.
Thank you..i am able to read the description.
Now when new ticket is arrived to my jira account i have to fetch description automatically. Am trying for that.
Can you help me.
I am trying to fetch latest comment from JIRA ticket.
i used this in python script.
issue.fields.comment <class 'jira.resources.PropertyHolder'>this is the output i received.Please let me know what is the issue
You have two ways to do this,
@AnnapurnaI have already replied for this in your other question.
In external environment, you only have two possibilities, Polling Search API, or Webhooks.
Also, if my above answer helped you, please upvote and accept it, so that other people looking for same thing can also get help.
You need to do something like this,
<span>comments </span><span>=</span><span> issue</span><span>.</span><span>fields</span><span>.</span><span>comment</span><span>.</span><span>comments </span><span>for</span><span> comment </span><span>in</span><span> comments</span><span>:</span> <span>print</span><span>(</span><span>"Text: "</span><span>, </span><span>comment</span><span>.</span><span>body</span><span>)</span>
Can you also mark this as accepted solution if someone is looking for comprehensive solution.
I used the above script. However, I am getting following Attribute Error: 'PropertyHolder' object has no attribute 'comment'
It looks like you're new here. Sign in or register to get started.