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

Provide entry for jiraSelectableArrayField which have the name attribute instead of id - Add Version by name instead of id #109

Open
AndreVirtimo opened this issue Nov 9, 2022 · 0 comments

Comments

@AndreVirtimo
Copy link

What feature do you want to see added?

To set the field "version" on issue creation I only can reference a version by the internal version id. This is not very flexible.

The Jira API allows two kind of values. For the internal id it is {"id":999}. This is already usable with this syntax:

jiraSelectableArrayField(fieldKey: 'versions', values: [jiraArrayEntry(value:'999')])

To use the version name (like "v1.2.3") the API offers the format {"name":"v1.2.3"}.

I also want to reference my version by name. Maybe this could be somethink like this:

jiraSelectableArrayField(fieldKey: 'versions', values: [jiraArrayNameEntry(value:'v1.2.3')])

Or an more abstract version:

jiraSelectableArrayField(fieldKey: 'versions', values: [jiraAbstractEntry(attribute: 'name', value:'v1.2.3')])

This should apply for all selectable array field where jira uses an internal id like fixVersion.

Upstream changes

No response

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

No branches or pull requests

1 participant