Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Create Type

Code Block
languagebash
curl -X POST --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types" \
  --header 'Content-Type:application/json' \
  --data '{
            "name": "PersonType",
            "attributes": [{
              "name" : "Family-Name"
            }, {
              "name" : "Year-Born"
            }]
          }'   

List Types

Code Block
languagebash
curl -X GET --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types"

Update Type

Code Block
languagebash
curl -X PUT --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types/PersonType" \
  --header 'Content-Type:application/json' \
  --data '{
            "name": "PersonType2"
          }'

Delete Type

Code Block
languagebash
curl -X DELETE --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types/PersonType" \
  --header 'Content-Type:application/json'