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

Add support for project datatype in custom fields #482

Merged
merged 1 commit into from
Oct 9, 2022

Conversation

oveaurs
Copy link
Contributor

@oveaurs oveaurs commented Oct 5, 2022

pkg/jira/edit.go Outdated Show resolved Hide resolved
@oveaurs oveaurs changed the title Adds support for project datatype in custom fields Add support for project datatype in custom fields Oct 6, 2022
customFieldFormatOption = "option"
customFieldFormatArray = "array"
customFieldFormatNumber = "number"
customFieldFormatProject = "project"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @oveaurs, I don't see this field format in the Jira doc. I am wondering what's the datatype for this field returned by the /field API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    "id": "customfield_13467",
    "name": "Cross over project",
    "custom": true,
    "orderable": true,
    "navigable": true,
    "searchable": true,
    "clauseNames": [
      "cf[13467]",
      "Cross over project"
    ],
    "schema": {
      "type": "project",
      "custom": "com.atlassian.jira.plugin.system.customfieldtypes:project",
      "customId": 13467
    }
  },

I found a reference to that datatype here: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-fields/

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thank you for the reference. The changes looks OK to me.

@ankitpokhrel
Copy link
Owner

Thank you for your contribution 🎉

@ankitpokhrel ankitpokhrel merged commit 045d65a into ankitpokhrel:main Oct 9, 2022
@oveaurs oveaurs deleted the project branch October 9, 2022 09:08
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

Successfully merging this pull request may close these issues.

3 participants