Hi,
For my automation work i have to fetch comment from JIRA ticket. Please let me know how to fetch comment from jira ticket.
Hi,
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 need to do something like this,
comments = issue.fields.comment.comments
for comment in comments:
print("Text: ", comment.body)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used the above script. However, I am getting following Attribute Error: 'PropertyHolder' object has no attribute 'comment'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have two ways to do this,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you also mark this as accepted solution if someone is looking for comprehensive solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.