Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop down custom fields are not working on Jira Cloud #33

Closed
via-justa opened this issue Sep 2, 2022 · 2 comments
Closed

Drop down custom fields are not working on Jira Cloud #33

via-justa opened this issue Sep 2, 2022 · 2 comments

Comments

@via-justa
Copy link

Drop down custom fields are not working on Jira Cloud

job configuration

    - name: Create
      id: create
      uses: atlassian/gajira-create@master
      if: env.CREATE_ISSUE == 'true'
      with:
        project: XXXX
        issuetype: Task
        summary: "[PR Created] ${{ github.event.pull_request.title }}"
        description: |
          **Created by:** ${{ github.actor }}
          **PR:** https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}
          **Description:** 
          ${{ github.event.pull_request.body }}
        fields: '{"customfield_10148": "DevOps", "customfield_10151": "Change request" , "customfield_10154": "True"}'

Field configuration for customfield_10154 as an example

"customfield_10154": {
    "required": false,
    "schema": {
        "type": "option",
        "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
        "customId": 10154
    },
    "name": "Auto Created Issue",
    "key": "customfield_10154",
    "hasDefaultValue": true,
    "operations": [
        "set"
    ],
    "allowedValues": [
        {
            "self": "https://up42.atlassian.net/rest/api/2/customFieldOption/10232",
            "value": "False",
            "id": "10232"
        },
        {
            "self": "https://up42.atlassian.net/rest/api/2/customFieldOption/10233",
            "value": "True",
            "id": "10233"
        }
    ],
    "defaultValue": {
        "self": "https://up42.atlassian.net/rest/api/2/customFieldOption/10232",
        "value": "False",
        "id": "10232"
    }
},

Job error

originError: Error: Bad Request
       at /home/runner/work/_actions/atlassian/gajira-create/master/dist/index.js:1:57112
       at processTicksAndRejections (internal/process/task_queues.js:97:5)
       at async Jira.fetch (/home/runner/work/_actions/atlassian/gajira-create/master/dist/index.js:1:63273)
       at async e.exports.execute (/home/runner/work/_actions/atlassian/gajira-create/master/dist/index.js:1:186085)
       at async exec (/home/runner/work/_actions/atlassian/gajira-create/master/dist/index.js:1:7099),
   source: 'jira',
   jiraError: {
     customfield_10148: "Specify a valid 'id' or 'name' for Domain",
     customfield_10151: "Specify a valid 'id' or 'name' for Change type",
     customfield_10154: "Specify a valid 'id' or 'name' for Auto Created Issue"
   }
 }

@via-justa
Copy link
Author

This project (like the other ghjira projects) appear to be abounded. Closing as part of issue cleanup

@sanjogpandasp
Copy link

@via-justa Were you able to resolve this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants