youngmon/atlassian-qna huggingface dataset:
Smart Values
Asked by Frank Collazo:

I'm trying to display or find all smart values in my assets db on JSM Data Center is there a simple uri that I can use to display these smart values?


Answers:
author: Florian Bonniec
body: Hi [@Frank Collazo](/t5/user/viewprofilepage/user-id/5109222)

On JIRA DC I'm not sure it's possible and limited to:
> You can access an insight field's full name, key, or summary through the following smart values
>
>     {{issue.InsightField}}          // returns Some Client Name (ABC-123){{issue.InsightField.key}}      // returns ABC-123{{issue.InsightField.summary}}  // returns Some Client Name
>
> I do not have JIRA instance to test on.

[Jira smart values - issues \| Automation for Jira Cloud and Data Center \| Atlassian Documentation](https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html)

Regards

comments: author: Frank Collazo
body: Hi [@Florian Bonniec](/t5/user/viewprofilepage/user-id/495589)

Thank you for your response. So when I set up my auto notification my template will look like this. I'm using the assets in JSM.

================= TEMPLATE ====================

Hello {{asset.Name}} (this will return the name of the asset object when my rule triggers, correct?

You are receiving this notification due to your certification {{asset.CertName}} is set to expire on {{asset.CertExpDate}}

Please provide us with your updated certificate.

Thank you

Help Desk Team

================= TEMPLATE ====================


author: Florian Bonniec
body: I would do some test but I do not think so. I think it's

issue.NameOfAssetField.summary that would be the name of asset selected.

Regards


author: Frank Collazo
body: ok, I will test this out. Thank you again.


Tags: assets

data-center

jira-service-management

jira-service-management-data-center

rest-api

smart-value
Adding fields to 'Details'
Asked by Jack Charnley:

Hi Everyone! Wondering if I could get any assistance.

I want to add a new field under the 'Details' within an issue, for instance where you have Assignee, reporter, request type, components etc, I want to add my own heading with another drop down list. Is this possible? Also, is it possible to change the name of components to for instance, Category?

Thank you in advance!

Jack


Answers:
author: Mikael Sandberg
body: Yes, you can add more fields to your request type. What you need to do is create the custom field by going to Settings \> Issues \> Custom fields and create it from here. If you do not know then name of the screen that your request type is using then you skip that step and just save the new field, then go to Project settings \> Request types. Select the request type you are updating and then click on Issue view and add it from there, or add it on the Request form if you want to make it available for the customer to select.

You can learn more about adding new fields in [this KB](https://support.atlassian.com/jira-service-management-cloud/docs/add-a-new-custom-field-to-a-project/). Note that this applies if you are using a company-managed project.


Tags: cloud

jira-service-management

jira-service-management-cloud
Assets import and update: use import or REST API?
Asked by Ben Dossche:

Hi,

we need to import several lists of Assets into our JSM and also want to be able to reimport/update these same assets on a regular basis. As far as I see I have 2 options:

* using import functionality (import data from CSV, JSON)
* using REST API (most probably with Forge)

the import functionality seems a bit less complicated, however it is not very clear to me whether a regular reimport/update of these assets is possible.

What would be the best approach for this situation?


Answers:
author: Mikael Sandberg
body: Hi [@Ben Dossche](/t5/user/viewprofilepage/user-id/5477211),

Welcome to Atlassian Community!

Using the import functionality is a manual process, so for the initial import that would work, but if you want to do it on a regular basis I would go the REST API route unless you will be using Assets Discovery to do the import. On thing to note if you use the external import you cannot use the user attribute or your import will fail since the external import is using an anonymous account so it does not have access your users.

I use the REST API to do daily updates to our assets, it is all handled by a workflow in Tray.io.

comments: author: Ben Dossche
body: Thank you for your explanations! That helps.


Tags: cloud

jira-service-management

jira-service-management-cloud
I want to add the name of an Assets object to the summary of a ticket.
Asked by Louie Goode:

I have a scheme called "Store Locations" and objects underneath them named by store number. See screenshot. How do I display the object name in the summary of the ticket? Is there a smart value for the object name?

![store loctions.png](/t5/image/serverpage/image-id/318621i2A8808A4E4EC9346/image-size/large?v=v2&px=999 "store loctions.png")


Answers:
author: Mikael Sandberg
body: Yes, there are [smart values](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/) for Asset objects and in this case {{object.Name}} will give you the store number. Just note that this only works if you do an asset lookup, if the object is already on the issue then use the field smart value to get the name.

comments: author: Louie Goode
body: Thank you Mikael,

I was not using it with lookup I will try that.


author: Louie Goode
body: I don't think I am doing this right. See the images below that do not result in anything printed to the screen. The first is looking up the object name and the second is applying to the summary field. ![Lookup.png](https://community.atlassian.com/t5/image/serverpage/image-id/318671i8DC988170F25E984/image-size/large?v=v2&px=999 "Lookup.png")![label.png](https://community.atlassian.com/t5/image/serverpage/image-id/318672iF09ED9D2A952E3EE/image-size/large?v=v2&px=999 "label.png")


author: Mikael Sandberg
body: The {{lookupObjects}} would return everything from your lookup, you still have to use the dot notion to get to the name. The first thing I would do is add a log action that you set to {{lookupObjects}}, that way you can see if the lookup is returning the object and go from there.


author: Louie Goode
body: Seems I am close with using Key = {{issue.customfield_13519}} in the lookup. However, I need the custom field name but and not the key.


author: Louie Goode
body: This is now resolved! Thanks for the logging tip! I just kept plugging away until I found it. In the lookup I used Key = {{issue.customfield_13519}} and in the summary I used {{lookupObjects.**name**}} where .name is the attribute I wanted.


Tags: cloud

jira-service-management

jira-service-management-cloud
How can I hide jira portal groups for all while I create them?
Asked by Vera Valshonok:

Hi!

We have a general one Create request and request form for the project in Portal, now I want to create a Group and add there additional forms to the portal, but while I create them I need al the customers that use the main Create request not to see these groups in the process of creation.

How can I hide them from everyone on the portal?


Answers:
author: Jack Brickey
body: Here is the process I use...

1. Create all of your request types first and keep hidden from any group.
2. Then create new groups when ready to go live.
3. move new request types into desired groups
4. test that things are as desired


author: Marcus Jones
body: Hi [@Vera Valshonok](/t5/user/viewprofilepage/user-id/5174542) ,

You can go to your portal, assuming your an admin, and select the "Customize" tab on the far right. Then select "Edit HomePage Layout". You'll see all your portals there and you can click the "eye" icon to show or hide them. Ofcourse, the project must already be created for you to go in here and hide the portal from customers and you'll need to go back and unhide it when you are ready for it to be public.

![Hide_JiraPortal.png](https://community.atlassian.com/t5/image/serverpage/image-id/318611i63EB2CF0D2ADE429/image-size/large?v=v2&px=999 "Hide_JiraPortal.png")


author: Ste Wright
body: Hi [@Vera Valshonok](/t5/user/viewprofilepage/user-id/5174542)

I'm not sure this is possible at this stage.

However, I'd consider planning this as a release so it can be implemented all in one go, with minimal impact to your users.

In the meantime, if you need time to plan/design the new Request Types and grouped layout, perhaps you could use your Sandbox for this (given you're on a Premium plan)?

That way, pre-release activities won't have an impact on production/customers.

Ste

comments: author: Vera Valshonok
body: Thanks


Tags: cloud

jira-service-management

jira-service-management-cloud
jira pick file from teams
Asked by hira.iqbal:

hi, how can we attach a file in task using teams location or any server


Answers:
author: Ste Wright
body: Hi [@hira.iqbal](/t5/user/viewprofilepage/user-id/3120535)

You want to attach a file to a Jira issue, which is a file within Microsoft Teams?

I'd consider using a URL to link to the file instead. You might also be able to take advantage of smart link functionality, especially if the file is stored within OneDrive.

See some more information on this article: <https://community.atlassian.com/t5/Confluence-articles/Smart-Links-a-richer-way-to-hyperlink/ba-p/1412786>

Ste


Tags: cloud

jira-service-management

jira-service-management-cloud
delete Organisation option form costumer portal
Asked by Waseem Haddad:

After I set up the organisations, there was a new option that was visible to customers and I couldn't delete it.

This is (when a customer wants to open a ticket, they see this):

![ter.png](/t5/image/serverpage/image-id/318570iAED8DB6C7041E804/image-size/large?v=v2&px=999 "ter.png")

Translation: Share with -\> No One - Organisation

How can I remove this option for customers?

Thank you very much


Answers:
author: Ste Wright
body: Hi [@Waseem Haddad](/t5/user/viewprofilepage/user-id/5408383)

I don't believe you can remove/hide this feature at present - the only option would be to remove users from the Organization.

There is a feature request for this though; check out [JSDCLOUD-10908](https://jira.atlassian.com/browse/JSDCLOUD-10908)

Ste

comments: author: Waseem Haddad
body: Hello [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470) ,

thank you so much for your answer, I used the work arround that is mentioned in the feature request.

Have a wonderful day ahead


Tags: cloud

jira-service-management

jira-service-management-cloud
Repositories and project missing in bitbucket account with email
Asked by G00sfraba:

Hello,

I have several old projects and repositories that I am not seeing in my Account once I login with email.

Before I was using username to login to bitbucket, but I see this has changed now and I can't login any more with username rather than with email.

The fun part is I can see my projects and products when selecting the topic for the support ticket, but I can't see them in the Bitbucket admin panel.

My old username was \<redacted\>  
My email is "\<redacted\>"  

<br />


Answers:
author: G00sfraba
body: I answered my question alone.

All repositories are separated into workspaces. SO practically I have to select a workspace first. So lame of me...  

Anyway thanks for the attention.


Tags: bitbucket-cloud

cloud
Getting code 128: fatal: detected dubious ownership in repository
Asked by AhmedFarazSiddiqui:

'git status' failed with code 128: fatal: detected dubious ownership in repository 'DIRECTORY PATH'  

I have executed the command   
git config --global --add safe.directory 'DIRECTORY PATH'  

The repository started working in the terminal, however, I'm still getting the error on Sourcetree UI.


Answers:
author: Patrik S
body: Hello [@AhmedFarazSiddiqui](/t5/user/viewprofilepage/user-id/2333594) and thank you for reaching out to Atlassian Community!

I would suspect that Sourcetree is running git with a different user than the user you get in the terminal, which is causing the error to persist.

Since the --global flag only applies to the current user, I would suggest trying to use the --system flag with the '\*' wildcard that will disable ownership verification for all the users and all the repositories :

    git config --system --add safe.directory '*' # For all users and all repositories

The wildcard '\*' is only available for git version \> **2.36**

Before adding paths/repositories to the exception list, please make sure to understand the security implications of [CVE-2022-24765](https://nvd.nist.gov/vuln/detail/cve-2022-24765) and [setup_git_directory](https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9). This error is returned when the user that owns the local repository is different than the user executing the git command. To avoid this, it's strongly recommended for each user have their own clone of the repository.

More details are available in the following article :

* <https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html>

Thank you, [@AhmedFarazSiddiqui](/t5/user/viewprofilepage/user-id/2333594) !

Patrik S

comments: author: AhmedFarazSiddiqui
body: Thank you, for your assistance Patrik, was stuck with this for a while.


author: alvigod OP
body: thank you so much.


author: taco turtle
body: worked for me. Thank you even if its years later. :)


author: Ronald Blaas
body: This didn't work for me. I have tried using --global or --system.

I do see the setting set in the corresponding file but git (and sourcetree) still won't let me clone the repository


author: dorota
body: Just Sourcetree Run as administrator

comments: author: marcusobrien
body: Yes this is the solution in Windows.


author: Greg Stephenson
body: The fix for any users running Parallels on their Mac and hitting this error when Cloning to the Windows virtual machine is to change the default download location to their named Windows drive.

1. Sourcetree will default to the shared Mac / Windows drive, something like C:\\Mac\\Home\\Documents\\\[Repository name\]
2. You need to navigate to the Windows drive C:\\Users\\\[Your username\]\\Documents\\\[Repository name\]


Tags: atl-orange

bitbucket-cloud

cloud
how to change ownership to a workspace
Asked by amihud pery:

is there a way to change the ownership of a workspace

the person how first build this workspace no longer work here and he used hes private mail for the workspace

is there a way to change ownership

the account amonthly paid to atlasian


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@amihud pery](/t5/user/viewprofilepage/user-id/5230399) and welcome,

did u read the following article <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/> ?

Fabio

comments: author: amihud pery
body: hi fabio nice to meet

i saw about tranferring reposatories

im talking about taking ownership of the whol workspace

the bill that beeing paid is on ivory computers

and the ownership of the workspace is on a private mail


author: Patrik S
body: Hello [@amihud pery](/t5/user/viewprofilepage/user-id/5230399)

Just adding to [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) response, I see the workspace you are referring to is a Personal workspace that is indeed attached to a private email.

Back in the day, when a Bitbucket account was created, bitbucket would also automatically create a Personal workspace attached to that account. This is not the case anymore, and workspaces are no longer automatically created for users. They need to be manually created and are **not** attached to an account anymore (see [Difference between shared and personal workspaces](https://confluence.atlassian.com/bbkb/difference-between-shared-and-personal-workspaces-1141477191.html)).

While there's no feature to convert a personal workspace into a shared workspace, you have the option to create a new workspace and [Transfer the repositories](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) to this new shared workspace. This new workspace will be owned by any user that is part of the **Administrator** group or added as a Technical/Billing contact at <https://my.atlassian.com> .

With regard to the plan subscription, after transferring the repositories to the new workspace, you will need to downgrade the old personal workspace to **Free**and upgrade the new workspace to the desired plan.

Hope that helps to clarify your questions! If you have any follow-up questions, please let me know.

Thank you, [@amihud pery](/t5/user/viewprofilepage/user-id/5230399) !

Patrik S


Tags: bitbucket-cloud

cloud
Unlink bitbucket account to my microsoft account
Asked by Zeke.Sebulino:

Hi,

I want to unlink my azure / ms account to my bitbucket login as I am unable to accept bitbucket workspace account using it. I want to sign up with my email (zeke.sebulino@etradingsoftware.com) without using ms account, but I need my ms account that is link to bitbucket be removed first.

<br />

Reason for this:   
I'm trying to accept an invitation to a bitbucket workspace but upon using ms account to login to bitbucket, i'm getting this error

Sorry, but we're having trouble signing you in.  
AADSTS90015: Requested query string is too long.

Thank you


Answers:
author: Syahrul
body: G'day, [@Zeke.Sebulino](/t5/user/viewprofilepage/user-id/5230206) Welcome to the community!

We have a solution available in our existing knowledge base that I highly recommend you check. It addresses the issue with the "AADSTS90015: Requested query string is too long" error that occurs when accepting the Bitbucket Cloud invitation using the Microsoft sign-in button.

[Troubleshooting "AADSTS90015: Requested query string is too long" error while accepting Bitbucket Cloud invitation using the Microsoft sign-in button](https://confluence.atlassian.com/bbkb/troubleshooting-aadsts90015-requested-query-string-is-too-long-error-while-accepting-bitbucket-cloud-invitation-using-the-microsoft-sign-in-button-1236602026.html)

In short, this happens because our URL is too long so you need to either manually sign up to Bitbucket.org first before opening the invite or trim the invite URL to shorten it.

Cheers,  
Syahrul


author: Zeke.Sebulino
body: Hi Syahrul,   
Apologies for the late response.   

Thank you for the workaround, I tried shortening the URL and that worked!

Thanks a lot. This is all set.


Tags: bitbucket-cloud

cloud
How to update a bitbucket repo file using api
Asked by Monica B:

our requirement is to update a file using bitbucket api , Im not able to find the relevant bitbucket api's please help asap


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hello Monica,

There has been a very helpful post [recently](https://community.developer.atlassian.com/t/rest-api-to-make-commit-and-push-to-a-bitbucket-repository/69658/2) which explains how to create new commits by uploading a file via the [bitbucket REST API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source#api-repositories-workspace-repo-slug-src-post). I believe you can use the same endpoint to create a new commit.

Another alternative is to use scripted git push committed changes to a file to the remote repository.

Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)


Tags: bitbucket-cloud

cloud
Delete large file from the repository (Again)
Asked by Ting Chen:

We previously requested assistance from the Bitbucket team to restore the repository to its original state without large files. (\<repo_url\>)

However, the team member failed to delete the previous records containing large files, resulting in the recurrence of this issue.

Therefore, we kindly request the Bitbucket team's assistance once again in restoring the repository.

Thank you.


Answers:
author: Theodora Boudale
body: Hi [@Ting Chen](/t5/user/viewprofilepage/user-id/5230152),

I see that there is an open support ticket for this issue and one of our engineers is helping you with this. I would suggest focusing on the support ticket, to avoid any confusion that may arise from discussing this issue in two different places.

Just a heads up, I removed the repo url from your post to comply with our privacy policy.

Kind regards,  
Theodora

comments: author: Ting Chen
body: Sure, thank you for your response and assistance.  

Best Regards,  
Ting Chen


Tags: bitbucket-cloud

cloud
Request access to a repo
Asked by ns88ns:

Hi, Community.

There is an SW repo on Bitbucket. I used it previously (a couple of years ago). I was able to see the issue tracker and post new issues from my Bitbucket account.

Now I returned to this repo because I found a problem and I wish to report it. The issue tracker is not accessible anymore though I'm able to see the repo itself and pull requests and there is activity.

As I understand - I need to request access to the repo and its issue tracker from the repo owner but I can't understand how to request access there. I checked everything in UI and found nothing neither a way to send a message to the repo owner nor any UI controls to request access. Checked the documentation - also, nothing is there.

Could somebody explain how to request access to a bitbucket repo or contact the repo owner?

Thank you a lot in advance.


Answers:
author: Theodora Boudale
body: Hi [@ns88ns](/t5/user/viewprofilepage/user-id/5229859),

There is no way to message other users or request access to a repo from the Bitbucket Cloud website.

You need to know who the admins are and contact them via other means if you'd like to request access.

If you can already see the source code but not the issue tracker, the repo may be public but the issue tracker may have been disabled or made private.

If you can view the source code of the repo, you could try opening the details of a certain commit via the Commits page of the repo and then leaving a comment where you tag the Author of the commit, and ask them if they have any plans to make the repo's issue tracker public because you would like to contribute.

Kind regards,  
Theodora

comments: author: ns88ns
body: Thank you, Theodora, for the reply.

Yes, it can be a resolution...

Regards.


Tags: bitbucket-cloud

cloud