Can trigger io add a contact to the native contact book? - trigger.io

I'm creating an application that maintains an internal contact list. I'd like export them to the native contact list. I'm using the trigger.io module contact, but this only offers reading the contatct list. Does anyone know how to do the opposite?

Currently it is not possible to add a contact to the address book using our contact module.
However, we are working on the contact module in our next sprint and are likely to add this functionality. I will update here again when that is done.

Related

iOS Address book records existing outside of address book database

I was reviewing Address Book Programming Guide for iOS and came across this comment:
Even though records are usually part of the Address Book database, they can also exist outside of it. This makes them a useful way to store contact information your application is working with.
What does this mean? Can I create contacts that are viewable by contacts app but not stored in the shared database?
Thanks!
A Record is just an object, so you can create one and do whatever you want with it. That statement means you can create and use an ABRecord for your own purposes without putting it into the Address Book database.
It means the opposite of what you asked - if you want a contact viewable in the contacts app, you have to put it in the Address Book database. However, if you're going to make your own contacts app (or add your own internal address book functionality), you could create and use ABRecords in your implementation.
ABRecordRef aRecord = ABPersonCreate(); will create a new record, and you can fill it out with contact information and use it internally in your app. Thus, as the snippet you found said, you can use them as a way to store contact information within your app without putting those contacts into the address book database.

How to dynamically populate Jira custom fields?

I'm new to the Jira admin side of things after having used it in a previous company as an end-user for several years. We are using the standard Jira workflow. The scenario I'm struggling with is the following. I'm attempting to match some of the functionality of our old-proprietary issue database. Right now I'm using many of the standard Jira fields, with only two new custom fields (both single Select Lists populated manually by me):
1) Customer = customer name who sent the new issue email to our support team
2) Customer Contact = the main customer contact, currently populated by the custom list
I created these two custom fields because we have external customers who call or email issues they have using our hosted software. Currently our system creates a simple new issue when a customer sends an email to our support email account. Our support team then goes in and cleans up the data and makes sure that all the required Jira fields have data, the comments are good, reproducible steps, etc. (Currently we do not strip out the customer domain name to auto-populate the Customer custom field, but I might try doing that soon.)
Our support team is asking that I add the following two new customer fields:
3) Customer phone number
4) Customer connection / login info
What I would like to implement is a system that goes something like this:
Customer name gets inputted (either automatically by grabbing domain name of customer email address or manually by our support team) into the Customer custom field. Customer name selected should be "pushed" into the Customer Contact Select List to help sub-select values for that particular customer.
The Customer Contact Select list should be "smart" or dynamic in that some pre-processing is done where the Customer name is grabbed so that it doesn't show ALL customers contacts for the tech support person to select, it just shows them the customer contacts for the customer that was selected.
Along with the filtered customer contacts, I would want to only see the Customer phone number for the contact that was populated in the Customer Contact select list.
And finally I would want to see the Customer connection information for the particular Customer that was selected.I've done this type of smart combo boxes in the past when I created Java / Database applications, so I have a feeling that this is possible in Jira. I'm just looking for the easiest way to implement this. It seems like there might be some external plugins that might help do this (ex. the values for the Custom fields are stored in a database table so they can be queried and the proper filtered result sets can be populated into the select lists.), or maybe using post functions (update issue), etc. But before I spent more effort investigating, I know this sort of thing has to be somewhere common and wanted to ask the Jira admin experts what the best practice would be for this type of functionality in custom fields. Please share your experience with how to solve this type of scenario. Thanks in advance!
Here is the way that tells how to import multiple options at once. Probably that would help u.
https://answers.atlassian.com/questions/92385/importing-project-from-another-jira-instance-how-do-we-mass-import-custom-field-multi-select-options?page=1#92622
EDIT
and here is the complete code to update another select list using new select list.
How to add new values to select list field in jira dynamically or using plug-in

IOS: Can I use ABAddressBook to store contact information outside the iPhones Contacts?

I'm wanting to store some contact information and allow the user to call/email the person instead of just looking up the info. I don't want the contacts stored in the user's Address Book in their contacts though. I want to keep it within the app only. Can I use ABAddressBook for this or do I need to create my own classes to accomplish this?
I'll address both your questions:
Can I use ABAddressBook for this?
You cannot use ABAddressBook to store a separate contacts database. Here's an excerpt from the ABAddressBook Class Reference:
The ABAddressBook class provides a programming interface to the Address Book—a centralized database used by multiple applications to store contact and other personal information about people.
The database referred to here is a pre-specified database; there is no method or class to create a new one, as the whole Address Book framework provides access to a single database accessible to the user through the Contacts application.
Do I need to create my own classes to accomplish this?
You would need to create a custom class for this. If you plan on supporting users with many, many contacts (in the thousands/high hundreds range), you probably would use an SQLite database. If you plan on supporting users with few contacts, you should probably use a .plist.
Usually, Objective-C programmers use the C library for SQLite directly, but now there is a great wrapper that you can find here called FMDB.
For info on the syntax and basics of SQLite, see the SQLite Language Guide.
Lastly, here are a couple books on SQLite and database programming for iOS:
(Apress) Using SQLite
(Wrox) Professional iPhone and iPad Database Application Programming
Hope this helps!

Does iOS have a standard way to enter and store a street address?

I'd like to prompt for a street address, in exactly the same way as the Contacts app.
I could mimic its UI, but that would involve duplicating a lot of existing functionality; the country list, the way it re-configures based on the country selection, validation, formatting, localization, etc. Is there an existing framework that provides this?
I'm also storing the entered value in Core Data, which of course doesn't have an Address type. Is it preferable to store the fields individually, use Transformable, or just use a plain string? Is there an existing class that I could re-use/subclass for this?
I can assume that iOS 5 is required.
No it doesn't, unfortunately. There are a few projects that help with this, though. You might find my project QuickDialog useful for this: QuickDialog
This is as good as I know of, but may not meet your needs. From The Address Book Programming Guide:
The Address Book UI framework provides four controllers:
ABPeoplePickerNavigationController prompts the user to select a person record from their address book.
ABPersonViewController displays a person record to the user and optionally allows editing.
ABNewPersonViewController prompts the user create a new person record.
ABUnknownPersonViewController prompts the user to complete a partial person record, optionally allows them to add it to the address book.

Limit ABPeoplePicker to just one group, not all contacts

In one of my apps I am saving contacts in the address book and putting them in a group I create to differentiate them from the rest of the contacts.
Is there a way I could show all the people from that group, but not all the rest of the AB with an ABPeoplePicker or similar view??
I'm just using native contacts to save me the hassle of coding all the database and UI stuff from scratch, I don't really need the contacts to be accessible from outside of the app. So if that isn't possible I guess I should just create my own contacts system, right? any other solutions?
I have worked on similar problem. But rather than creating the whole contact system what we did is ..... just created over own picker..... using a tableViewController and then after we used ABPersonViewController and other things as it is..... yes, for our specific contacts(as you have group) we had to store the recordId's in a small database.....

Resources