Dcm2bids is not adding the taskname

Hello,

do you know why dcm2bids would not add the taskname:

{
  "descriptions": [
    {
      "datatype": "anat",
      "suffix": "T1w",
      "criteria": {
        "ProtocolName": "*T1w*"
      },
      "sidecar_changes": {
        "ProtocolName": "T1"
      }
    },
    {
      "id": "task_rest",
      "datatype": "func",
      "suffix": "bold",
      "criteria": {
        "SeriesNumber": "8"
      },
      "sidecar_changes": {
        "TaskName": "rest"
      }
    }
  ]
}

This is what comes out:

└── sub-001
    └── ses-001
        ├── anat
        │   ├── sub-001_ses-001_T1w.json
        │   └── sub-001_ses-001_T1w.nii.gz
        └── func
            ├── sub-001_ses-001_bold.json
            └── sub-001_ses-001_bold.nii.gz

So the task name is not added, resulting in the BIDS validator not validating this.

Thank you!
Marco

Hi @marco5790,

Please refer to the documentation (Create a config file - dcm2bids documentation). You can see that you did not specify any custom_entities.

Best,
Steven