# Pass Katalon Test Case ID into JIRA

**URL:** <https://forum.katalon.com/t/pass-katalon-test-case-id-into-jira/16007>\
**Category:** Integrations\
**Tags:** integrations, katalon-studio\
**Created:** [December 27, 2018, 2:32am UTC](https://forum.katalon.com/t/pass-katalon-test-case-id-into-jira/16007 "2018-12-27T02:32:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evan](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@Evan](https://forum.katalon.com/u/Evan)\
**Post date:** [December 27, 2018, 2:32am UTC](https://forum.katalon.com/t/pass-katalon-test-case-id-into-jira/16007/1 "2018-12-27T02:32:48Z")

</div>

Hi team,

I am trying to create JIRA Test cases via Katalon. Instead of fixed values, I want to parameterise the creation of test cases into JIRA with the same ID as Katalon test cases.  
Example: I have created a Katalon test case called “Verify PDF”. I wanted to create a test case in JIRA with the same name. However, I wanted to put this under “Keywords” or “Test Listeners”, I need this to be dynamic in such way that it captures different test case names.

Here is my test case to integrate with JIRA:

> def create\_issue = WS.sendRequest(findTestObject(‘JIRA/Create issue type’, [(‘project\_key’) : GlobalVariable.JIRA\_Project\_Key  
> , (‘summary’) : **findTestCase.name** , (‘description’) : ‘Creating of an issue using project keys and issue type names using the REST API’  
> , (‘issue\_type’) : ‘Test’, (‘priority’) : ‘Major’, (‘authorization’) : GlobalVariable.JIRA\_Authorisation]))

---

<div class="post-metadata">

**Author:** ![Evan](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@Evan](https://forum.katalon.com/u/Evan)\
**Post date:** [December 27, 2018, 3:05am UTC](https://forum.katalon.com/t/pass-katalon-test-case-id-into-jira/16007/2 "2018-12-27T03:05:42Z")

</div>

I got it working with this:

> TestCaseContext currentTestCaseID = testCaseContext.getTestCaseId()

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 27, 2018, 6:34am UTC](https://forum.katalon.com/t/pass-katalon-test-case-id-into-jira/16007/3 "2018-12-27T06:34:08Z")

</div>

Just let me add reference to [Can we get testcase name from code ?](http://forum.katalon.com/t/can-we-get-testcase-name-from-code/10989/7)
