how to use the components and custom field mappings parameter in createIssue in JJUPIN

eric anier
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2015

Hi, 

I created a sil to automate creation of a lot of subtask with a lot of custom fields.

Upon creating issue i wish to include the values of all custom_fields during createIssue call, this is to minimize the logs in the activity stream.

 

Currently i used below statement, can i use the components/custom_fields_mappings parameter of createIssue to do this?

%issueKey%.CustomField = Value;

 

 

Thanks,

 

1 answer

1 accepted

1 vote
Answer accepted
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2015

You have an example here: https://confluence.kepler-rominfo.com/display/SIL30/createIssue

 

Have fun,

Radu

eric anier
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2015

Hi Radu, already seen that actually, cant figure out how to use components and custom_fields_mapping. issue_components = components; //an array containing all the components of the current project are components custom_fields? how do we use this? cant find any example. custom_fields_mapping = "STDUP|fmanaila|STDGP|jira-users"; STDUP= is this a Jjupin alias? fmanaila| = is this the string value? Regards,

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2015

Yes, you're right: pairs of CF name / alias followed by value. This does not work for multi-value fields. We have in mind to add an overloaded createIssue to make the creation easier.

Antoin Stanton May 13, 2016

I'm just looking at the documentation and I'm wondering do I need to pass values (most likely null values) for priority, description, components, due date, estimate and security level before my customfield mappings, or can JIRA figure out that the value after summary is the customfield mappings and not priority?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events