Query remaining estimate using soap

Benoît Barbier August 24, 2017

Hi,

I'm using JiraSoapService.

 

It works well. But I do not understand how to query the remaining estimante for an issue.

Remaining estimate are not inside work logs, so, where is it ?

 

Thanks for your answer.

Benoît

2 answers

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2017

Ah, from memory, the SOAP interface never gave you the estimate stuff.  You either have to write your own add-on to expose it, or upgrade to using REST

Benoît Barbier August 24, 2017

Ok, this explain why I didn't find the value.

So, I will try another way to find my estimate stuff.

0 votes
Tayyab Bashir
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2017

I havn't used Soap for this puporse, but I assume it would be similar to making rest call. 

In rest you simply get an issue by passing its ID.
[GetIssueByID() | https://jira.pk-lhr.u-blox.net/plugins/servlet/restbrowser#/resource/api-2-issue-issueidorkey]

And then just access the remainingEstimate value from the JSON reply. 

I see there are similar methods in Soap as well. 

[getIssue Soap | https://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html#getIssue(java.lang.String, java.lang.String)]

Benoît Barbier August 24, 2017

Thanks, but unforunately, there is no remaining estimate inside the SOAP "getIssue" reply.

That's why I ask for the knowledge of community.

The only things inside "getIssue" are the following :

 

object(stdClass)[224]
  public 'id' => string '872800' (length=6)
  public 'affectsVersions' =>
    array (size=0)
      empty
  public 'assignee' => string 'mylogin' (length=9)
  public 'attachmentNames' =>
    array (size=0)
      empty
  public 'components' =>
    array (size=0)
      empty
  public 'created' => string '2017-08-11T12:37:00.000Z' (length=24)
  public 'customFieldValues' =>
    array (size=6)
       ...
  public 'description' => string 'soap test' (length=9)
  public 'duedate' => null
  public 'environment' => null
  public 'fixVersions' =>
    array (size=0)
      empty
  public 'key' => string 'TCN-3747' (length=8)
  public 'priority' => string '9' (length=1)
  public 'project' => string 'TCN' (length=3)
  public 'reporter' => string 'mylogin' (length=9)
  public 'resolution' => null
  public 'status' => string '1' (length=1)
  public 'summary' => string 'Test to be delete on sept 2017' (length=34)
  public 'type' => string '3' (length=1)
  public 'updated' => string '2017-08-24T06:14:08.000Z' (length=24)
  public 'votes' => int 0

Suggest an answer

Log in or Sign up to answer