Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-59930

inconsistent updated time when issues are updated with a link to an applinked wiki page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.1.0
    • Issue - Actions

    Description

      Reproduced in Confluence 5.9.5 and JIRA 7.1.0

      Steps to reproduce.
      1. Create a JIRA and a Confluence, applink them together.
      2. Create an issue on JIRA. (make a note of the time)
      3. Link to that issue using the jira macro in Confluence on a page and save said page.
      4. reload issue. Note the fact that there is now an issue link.

      cli-4544:reprosearchapi twong$ curl -v -H "Content-Type: application/json" -u admin:admin "http://localhost:8080/rest/api/2/search?jql=key%20in%20%28NEW-3%29&fields=updated" | jq ..
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying ::1...
      * Connected to localhost (::1) port 8080 (#0)
      * Server auth using Basic with user 'admin'
      > GET /rest/api/2/search?jql=key%20in%20%28NEW-3%29&fields=updated HTTP/1.1
      > Host: localhost:8080
      > Authorization: Basic YWRtaW46YWRtaW4=
      > User-Agent: curl/7.43.0
      > Accept: */*
      > Content-Type: application/json
      > 
      < HTTP/1.1 200 OK
      < Server: Apache-Coyote/1.1
      < X-AREQUESTID: 977x1616x1
      < X-ASEN: SEN-L7147545
      < Set-Cookie: JSESSIONID=5C5BE4C7922CDA34A0241E07A9924E0B; Path=/; HttpOnly
      < X-Seraph-LoginReason: OK
      < Set-Cookie: atlassian.xsrf.token=BI3F-GHII-7I31-EZ4D|06d45407e184cf29f9f12a052482ea66c6e57964|lin; Path=/
      < X-ASESSIONID: w50x89
      < X-AUSERNAME: admin
      < Cache-Control: no-cache, no-store, no-transform
      < X-Content-Type-Options: nosniff
      < Content-Type: application/json;charset=UTF-8
      < Transfer-Encoding: chunked
      < Date: Tue, 23 Feb 2016 00:17:01 GMT
      < 
      { [309 bytes data]
      100   302    0   302    0     0   8557      0 --:--:-- --:--:-- --:--:--  8628
      * Connection #0 to host localhost left intact
      {
        "expand": "names,schema",
        "startAt": 0,
        "maxResults": 50,
        "total": 1,
        "issues": [
          {
            "expand": "operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields",
            "id": "10008",
            "self": "http://localhost:8080/rest/api/2/issue/10008",
            "key": "NEW-3",
            "fields": {
              "updated": "2016-02-16T11:47:45.000-0800"
            }
          }
        ]
      }
      "names,schema"
      0
      50
      1
      [
        {
          "expand": "operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields",
          "id": "10008",
          "self": "http://localhost:8080/rest/api/2/issue/10008",
          "key": "NEW-3",
          "fields": {
            "updated": "2016-02-16T11:47:45.000-0800"
          }
        }
      ]
      {
        "expand": "operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields",
        "id": "10008",
        "self": "http://localhost:8080/rest/api/2/issue/10008",
        "key": "NEW-3",
        "fields": {
          "updated": "2016-02-16T11:47:45.000-0800"
        }
      }
      "operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields"
      "10008"
      "http://localhost:8080/rest/api/2/issue/10008"
      "NEW-3"
      {
        "updated": "2016-02-16T11:47:45.000-0800"
      }
      "2016-02-16T11:47:45.000-0800"
      cli-4544:reprosearchapi twong$ curl -v -H "Content-Type: application/json" -u admin:admin "http://localhost:8080/rest/api/2/issue/NEW-3?fields=updated"|jq .                                                                                                                                                               
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying ::1...
      * Connected to localhost (::1) port 8080 (#0)
      * Server auth using Basic with user 'admin'
      > GET /rest/api/2/issue/NEW-3?fields=updated HTTP/1.1
      > Host: localhost:8080
      > Authorization: Basic YWRtaW46YWRtaW4=
      > User-Agent: curl/7.43.0
      > Accept: */*
      > Content-Type: application/json
      > 
      < HTTP/1.1 200 OK
      < Server: Apache-Coyote/1.1
      < X-AREQUESTID: 977x1617x1
      < X-ASEN: SEN-L7147545
      < Set-Cookie: JSESSIONID=1D84B53485AF6E946A4CB726DFCC7FE5; Path=/; HttpOnly
      < X-Seraph-LoginReason: OK
      < Set-Cookie: atlassian.xsrf.token=BI3F-GHII-7I31-EZ4D|a89ef78e7000b99febfec6ec74d9662720e1b48e|lin; Path=/
      < X-ASESSIONID: 1yqe20h
      < X-AUSERNAME: admin
      < Cache-Control: no-cache, no-store, no-transform
      < X-Content-Type-Options: nosniff
      < Content-Type: application/json;charset=UTF-8
      < Transfer-Encoding: chunked
      < Date: Tue, 23 Feb 2016 00:17:15 GMT
      < 
      { [246 bytes data]
      100   240    0   240    0     0   7502      0 --:--:-- --:--:-- --:--:--  7741
      * Connection #0 to host localhost left intact
      {
        "expand": "renderedFields,names,schema,transitions,operations,editmeta,changelog,versionedRepresentations",
        "id": "10008",
        "self": "http://localhost:8080/rest/api/2/issue/10008",
        "key": "NEW-3",
        "fields": {
          "updated": "2016-02-22T16:09:03.274-0800"
        }
      }
      

      Note the fact there are different updated times.

      Expected behavior:
      Consistent update times.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              twong Tim Wong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: