[go: nahoru, domu]

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

support "option-with-child" custom field #567

Open
jlevon opened this issue Feb 2, 2023 · 5 comments
Open

support "option-with-child" custom field #567

jlevon opened this issue Feb 2, 2023 · 5 comments

Comments

@jlevon
Copy link
jlevon commented Feb 2, 2023
$ jira version
(Version="1.3.0", GitCommit="ed84fe74f68ba1b2cf0504a931ca09a03b2c9fed", CommitDate="2023-01-02T09:59:32+00:00", GoVersion="go1.19.4", Compiler="gc", Platform="linux/amd64")

Our private local JIRA has a custom field like this:

            - name: foo
              key: customfield_15160
              schema:
                datatype: option-with-child

This is a two-valued option field. Is there any way to support this field?

@ankitpokhrel
Copy link
Owner

Hi @jlevon, I don't see this field format in the Jira doc. Would you be able to provide some sort of reference to the documentation for this data type?

@jlevon
Copy link
Author
jlevon commented Feb 14, 2023

Thanks your reply Ankit - I can't do that, I know nothing whatsoever about Jira, just what is reported back for me in that custom fields file.

However, I subsequently discovered that the problem is more basic than that - I am seeing #548 on even basic array fields

@vikrem
Copy link
vikrem commented Feb 15, 2023

+1 for this issue.

The option appears to be actually be a cascading select custom field, from the JIRA docs.

When I fetch an issue from JIRA's rest API directly, i see this:

{                                                                                                                                                                                                                     
  ...                                                                                                                                                                                             
  "fields": {                                                                                                                                                                                                         
    ...                                                                                                                                                                            
    "customfield_90210": {                                                                                                                                                                                            
      "self": "https://.../rest/api/3/customFieldOption/1337",                                                                                                                              
      "value": "Foobar",                                                                                                                                                                                        
      "id": "1337",                                                                                                                                                                                                  
      "child": {                                                                                                                                                                                                      
        "self": "https://.../rest/api/3/customFieldOption/123456",                                                                                                                            
        "value": "Baz",                                                                                                                                                                                          
        "id": "123456"                                                                                                                                                                                                 
      }                                                                                                                                                                                                               
    },     

Though my config shows:

issue:                          
    fields:                         
        custom: 
            - name: Foobar field    
              key: customfield_90210 
              schema:               
                datatype: option-with-child    

@ankitpokhrel
Copy link
Owner

Thank you for additional details @vikrem. I will check if this feature can be added quickly. PRs are welcome in the meantime.

@abhisheksoni27
Copy link

Any update on this? @ankitpokhrel

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

4 participants