Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Assets - Set a default value when importing

Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 14, 2023

Hi,

I've looked in to this before but hopefully someone has figured out a way to do this in the meantime.

I have several imports going in to the same objectType and would like to be able to specify during the import what the source is.

In a CSV I can of course add a value as a column but I don't see a way to do this with for example an LDAP Import. Is there a way to either generate an attribute on the fly or set a default value somehow during/after import?

2 answers

0 votes
Melo
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 23, 2023

Hi @Dirk Ronsmans ,

 "Is there a way to either generate an attribute on the fly or set a default value somehow during/after import?"

Using Asset automation, you can set default values on existing attributes.

e.g. When object created, if email ends with @mycompany (email domain) add "mycompany" to attribute Organization.

You'd need to define those before the import, and also, there is a limitation of 1 event and three pairs of conditions. Depending on your case, you may need more than one rule.

 

https://confluence.atlassian.com/servicemanagementserver/configuring-assets-automation-rules-1044784502.html

I hope that helps.

Thanks,

Melo

Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 24, 2023

Yeah, I'd second this.

If you have a csv import, include a dummy column. 

If you have a database import, include a simliar dummy column in the sql selector.

Anything else left empty, can be assumed to be an LDAP import.

If you have 2 separate ldap imports and you want to identify ldap1 vs ldap2, then you'll need to use automation to fill in the empty data source attribute with an appropriate value based on some existing data differentiator  (maybe the distinguished name containing some keyword hopefully different for ldap1 vs ldap2)

Like Melo likes this

The function to specify "Default" values for imports is essential. Since with imports it cannot be ensured that e.g. a status is passed. Thus, no attributes can be set as "mandatory field", which should actually be treated as such. Because the import does not allow this! :-(

0 votes
Riley Venable _Atlas Bench_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 14, 2023
You can specify a Data source field and Destination attribute to map with the Data Locator in the Import tab of the Object schema. You can also modify the default settings for this attribute mapping, including entering an IQL statement, a concatenator, a regular expression, and a Base 64 value.
Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 16, 2023

Hi @Riley Venable _Atlas Bench_ ,

i'm afraid i'm not fully following what you trying to explain.. 

You wouldn't happen to have a screenshot of the configuration or a link to some documentation about this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events