I am trying to build a workflow whereby when an issue is created in one project, a child copy is created in another project. This is for ITIL: an Event Project that tracks events from the monitoring subsystem, and an Ops Project, where our staff manage Incidents submitted by monitoring.
Using CustomWare JIRA Utilities, I added a Post Function to the Create Issue transition for the Event Project, so that new Event issues will create new Ops issues. If I create a new Event via the JIRA web interface, a child Incident is created in the Ops project. However, when I create an Event via jira-cli (python) the Post Function apparently does not trigger, and no child incidents are linked.
It looks like jira-cli is calling soap.service.createIssue(auth, remoteIssue) ...
1-16:54 dannhowa@ops-dev ~/bin> python jira create -p ET -s test -d test -z P2 -t Event <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:ns3="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.rpc.jira.atlassian.com" xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header/> <ns2:Body> <ns1:getCustomFields> <in0 xsi:type="ns3:string">2HRmhtNdSU</in0> </ns1:getCustomFields> </ns2:Body> </SOAP-ENV:Envelope> {'priority': 2, 'description': 'test', 'customFieldValues': [], 'fixVersions': [], 'summary': 'test', 'project': 'ET', 'assignee': 'nagios', 'components': [], 'affectsVersions': [], 'type': 33} Created issue ET-106
Is there an issue whereby Post Functions are not applied to issue creation via API? Any suggestions on how to get this working?
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.