Skip to content

Commit

Permalink
Merge pull request #114 from NewTec-GmbH/feature/custom_field_example
Browse files Browse the repository at this point in the history
Add a short description regarding custom fields.
  • Loading branch information
gabryelreyes authored Nov 26, 2024
2 parents 7cc5f58 + 44c1ab0 commit 658d684
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/import_issues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The JSON file that describes the issues to be imported requires the following fo
- To determine which issue types and fields are available, please contact your Jira administrator.

Note:

The `id` key for `issuetype` is not used in the examples as it can lead to errors in the test server. However it looks like this:

```json
Expand All @@ -41,6 +42,24 @@ The `id` key for `issuetype` is not used in the examples as it can lead to error
}
```

The JIRA custom fields are more difficult, because the custom field id must be known, as well as its type. If you don't know the custom field id or even which ones are custom fields, export one issue and have a look to the JSON output.

```json
{
...

"issues":[
{
...

"customfield_XXXXX": {
"value": "my value"
}
}
]
}
```

## Import single issue

See: [Single issue template](./single_issue.json)
Expand Down

0 comments on commit 658d684

Please sign in to comment.