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


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;





1 answer

1 accepted

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,

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.

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

321 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you