Skip Menu |

This queue is for tickets about the JIRA-Client-Automated CPAN distribution.

Report information
The Basics
Id: 125979
Status: open
Priority: 0/
Queue: JIRA-Client-Automated

People
Owner: Nobody in particular
Requestors: Mark.Montminy [...] mrcy.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: update_issue doesn't call _convert_to_customfields
Date: Wed, 1 Aug 2018 12:31:13 +0000
To: "bug-JIRA-Client-Automated [...] rt.cpan.org" <bug-JIRA-Client-Automated [...] rt.cpan.org>
From: "Montminy, Mark [USA]" <Mark.Montminy [...] mrcy.com>
I don't know if this was intentional, or an oversight, but I've just started playing with this module to automate a process, and was having trouble updating issues. The documentation wasn't clear on how to handle custom fields, if they should use the English name or field name, but it suggests using get_issue(), so I went with English names, only to find updates failing. Looking through the code it appears that $self->_convert_to_customfields is called on a create, but not on an update_issue, which seems inconsistent. I've worked around it by calling the convert_to_customfields method directly in my script to update my hash prior to the update. Thanks for the module, it's saved me a bunch of time. Mark Montminy Principle Applications Engineer, IT Services 50 Minuteman Road Andover MA, 01810 Office: +1 978 967 1882 Mobile: +1 978 408 3699 <mailto:mark.montminy@mrcy.com> mark.montminy@mrcy.com | mrcy.com | Innovation That Matters <https://www.glassdoor.com/Overview/Working-at-Mercury-Systems-EI_IE4049.11, 26.htm> <http://www.facebook.com/MercuryComputerSystems> <https://twitter.com/MRCY?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eau Show quoted text
<https://www.mrcy.com/careers/overview/>
Download image001.png
image/png 7.3k
image001.png
Download image002.png
image/png 722b
image002.png
Download image003.jpg
image/jpeg 771b
image003.jpg
Download image004.png
image/png 1023b
image004.png
Download image005.png
image/png 1k
image005.png
Download image006.png
image/png 883b
image006.png
Download smime.p7s
application/pkcs7-signature 5.8k

Message body not shown because it is not plain text.

Thanks for reporting this! It's not intentional, just a case of "we didn't have to do that for our implementation". :-) If you'd like to submit a pull request to fix this, I'd be happy to accept it. Please fork https://github.com/frimicc/jira-client-automated and then submit your fix. (I'm no longer a JIRA administrator at my office, so it's hard for me to test the changes at the moment.) Thanks for using the module! -- Michael Friedman On Wed Aug 01 08:33:27 2018, Mark.Montminy@mrcy.com wrote: Show quoted text
> I don't know if this was intentional, or an oversight, but I've just started > playing with this module to automate a process, and was having trouble > updating issues. > > The documentation wasn't clear on how to handle custom fields, if they > should use the English name or field name, but it suggests using > get_issue(), so I went with English names, only to find updates failing. > > Looking through the code it appears that $self->_convert_to_customfields is > called on a create, but not on an update_issue, which seems inconsistent. > > I've worked around it by calling the convert_to_customfields method directly > in my script to update my hash prior to the update. > > Thanks for the module, it's saved me a bunch of time. > > > Mark Montminy > > Principle Applications Engineer, IT Services > > 50 Minuteman Road > > Andover MA, 01810 > > Office: +1 978 967 1882 > > Mobile: +1 978 408 3699 > > > > <mailto:mark.montminy@mrcy.com> mark.montminy@mrcy.com | mrcy.com | > Innovation That Matters > <https://www.glassdoor.com/Overview/Working-at-Mercury-Systems-EI_IE4049.11, > 26.htm> <http://www.facebook.com/MercuryComputerSystems> > <https://twitter.com/MRCY?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eau > <https://www.mrcy.com/careers/overview/> > > >