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

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

178 views 0 4
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