It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Importing Sprint field value in JSON format doesn't work Edited

I have an empty project, that is no Sprints exists. I am attempting to import issues with a Sprint field, so following the documentation I structured the JSON as follows:

... excerpt from some issue ...

: [ { "fieldName": "Sprint", "fieldType": "com.pyxis.greenhopper.jira:gh-sprint", "value": [ { "rapidViewId": 30, "state": "Complete", "name": "New Sprint" } ] } ]

However I get an error for every issue with a Sprint field:

Cannot add value [ {state=CLOSED, name=Sprint 54 FE (05.12. - 18.12.)} ] to CustomField Sprint in Issue with summary 'new LTIs for ProTrain, DB Personas and NAP': null


What am I doing wrong?

2 answers

Hi Laszlo,

I have the same issue. Did you resolve this problem?

Hi Jacek,

I am afraid, it doesn't work. There is no way to correctly import the start date, end date and finish date this way.

I ended up writing a script that created the sprints and assigned the issues to the correct sprints via the REST API.

It's a pain.

Additionally, the "Finish Date" can't be set via the API either. It will be the time your script marks the Sprint as finished, which screws up the reporting.


Hi Laszlo,

It was working before Jira cloud update. Now it looks broken.

Thanks for your fast response :)

0 votes

Hello Laszlo,

Thank you for reaching out to Community!

I happened to notice that you raised the same request in our support portal, and my colleague, Belto, is already assisting you with this issue.

Once the issue is resolved, please feel free to reply here with the resolution, as it can help other users in the future.

Thank you for your understanding!



I can't get this function to work. Is there a resolution to it?

Belto Atlassian Team Oct 08, 2019

@Vincent Mutambuki _Mumo Systems_ If you're having trouble importing a JSON file I recommend raising a support request at support providing the file being used and specifying what exactly isn't working (errors, failure, ect...)

Thanks for your response. We have it fixed now. The sprint object was not in an Array. The warning it was throwing was misleading. 

@Vincent Mutambuki _Mumo Systems_ could you please write an example how you fixed ?

I have the very same problem as @Laszlo Torok and I do have sprint object in an array, but still get the import error:

Cannot add value [ [{startDate=2019-01-01, endDate=2019-01-14, name=OMTC 112 R, completeDate=2019-01-14, state=CLOSED}, {startDate=2018-01-15, endDate=2018-01-31, name=OMTC 113 R, completeDate=2018-01-31, state=CLOSED}] ] to CustomField Sprint in Issue with summary 'Missing Reference in measure.xml leads to VGD not measuring': null

@tomasz_zylka  - The solution is documented here 

  "projects": [
      "name": "Project",
      "key": "KEY",
      "issues": [
          "externalId": "51",
          "priority" : "High",
          "description" : "Test JSON import",
          "status" : "TO DO",
          "reporter" : "abcde-12345-fedcba",
          "issueType" : "Bug",
          "summary" : "Test JSON import",
          "customFieldValues": [
              "fieldName": "Sprint",
              "fieldType": "com.pyxis.greenhopper.jira:gh-sprint",
              "value": [
                  "rapidViewId": 30,
                  "state": CLOSED",
                  "startDate": "2018-01-01",
                  "endDate": "2018-01-01",
                  "completeDate": "2018-01-01",
                  "name": "New Sprint"

@Vincent Mutambuki _Mumo Systems_ 

I don't know, I did what you wrote several days ago, now I repeated exactly same thing and obviously with the same result:

Cannot add value [ [{name=New Sprint, state=CLOSED, startDate=2018-01-01, endDate=2018-01-01, completeDate=2018-01-01, rapidViewId=456}] ] to CustomField Sprint in Issue with summary 'Summary of the issue': null 

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you