Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Update harvest time recorded for a task in Jira in the Time tracking

Oliver Cortinas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2023

There is a way to update the field Time Tracking on the JIRA tasks with the hours registered in Harvest from the Harvest Time Tracking entries? We use that but the Time Tracking field remains on 0. 

2 answers

1 accepted

0 votes
Answer accepted
Bernhard Wendel (HM)
June 21, 2018

So, the final answer is: It is possible and works reliably.

 

You can also pass multiple attributes per object type:

{
    "software": [
        {"name": "SW1", "vendor": "MS"},
        {"name": "SW2", "vendor": "MS"},
        {"name": "SW3", "vendor": "Adobe"}
    ],
    "computer": [
        {
            "name": "Computer 1",
            "software": "SW1||SW3"
        }
    ]
}

 

And since everything is nicely together in one file, you only need one import configuration.

0 votes
PJ Wysota
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 Champions.
June 20, 2018

Well, You will not. :-) Here is a post from me, that could help you (subsequent imports need to be done), but as discussed with RIada - there are currently no options to CREATE referenced objects on imports - the only upgrade of this functionality they think of currently is maybe some sequencing imports to allow creating referenced objects first and then relate to them.

https://blog.valiantys.com/en/expert-tips/insight-for-jira

Bernhard Wendel (HM)
June 20, 2018

Thanks for your reply, but apparently you are wrong here. Let me explain:

{
    "software": [
        {"name": "SW1"},
        {"name": "SW2"},
        {"name": "SW3"},
        {"name": "SW4"},
        {"name": "SW5"},
        {"name": "SW6"},
        {"name": "SW7"},
        {"name": "SW8"},
        {"name": "SW9"},
        {"name": "SW10"}
    ],
    "computer": [
        {
            "name": "Computer 1",
            "software": "SW1||SW3"
        }
    ]
}

Using this as an import file and setting up the mappings (Computer with selector = computer; Software with selector = software) will yield the expected results: After the import finishes, there will be 1 computer with 2 references to software.

 

When you clean out both object types, this can be reproduced several times.

PJ Wysota
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 Champions.
June 21, 2018

Do you are doing EXACTLY what we have discuss with Riada - sequencing import. SW objects go first. Then you create PC with referencje to just create, but already EXISTING SW objects. :)

Suggest an answer

Log in or Sign up to answer