Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create Issue transition triggers Post Function on Web UI, but not SOAP API

d November 5, 2012

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?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
d November 6, 2012

So, I have this problem with CustomWare JIRA Utilities. I installed the Script Runner plugin, and I am able to get the desired behavior via web or API via the "Script workflow function : Clones an issue and links" Post Function.

TAGS
AUG Leaders

Atlassian Community Events