youngmon/atlassian-qna huggingface dataset:
Adding the number in the smart value to the date
Asked by ?mer - OBSS:

Hi everyone,  

I'm having trouble adding the number I received with a web request over the date. These are the steps I try;  

1. Some trigger

2. Send Web Request

3. Creating Variable

I am getting some numeric value from web request then creating a variable with that number;  

![Screenshot 2022-12-28 225305.png](https://community.atlassian.com/t5/image/serverpage/image-id/232243iD1427CB20AEEF008/image-size/large?v=v2&px=999 "Screenshot 2022-12-28 225305.png")  
4. Update Due Date with adding this number onto the now.  
![Screenshot 2022-12-28 225730.png](https://community.atlassian.com/t5/image/serverpage/image-id/232244i783F1D646233764F/image-size/large?v=v2&px=999 "Screenshot 2022-12-28 225730.png")

When I logged the value I extracted in the third step, I can see correct number;  
![Screenshot 2022-12-28 230334.png](https://community.atlassian.com/t5/image/serverpage/image-id/232246i3116E6E2CB604AE3/image-size/large?v=v2&px=999 "Screenshot 2022-12-28 230334.png")

These are my all steps. When i try last step with a constant number everything's ok but when i try to use a smart value due date is updated with an empty value. Probably I'm making something wrong on last step but I can't figure out how can i fix this.  

Thanks,  
?mer


Answers:
author: Bill Sheboy
body: Hi [@?mer - OBSS](/t5/user/viewprofilepage/user-id/3678185)

At this time, created variables are always text type. Please try including asNumber when you use the variable:

{{now.plusDays(averageInProgressInDays.asNumber)}}

Kind regards,  
Bill

comments: author: ?mer - OBSS
body: Thanks Bill, it worked


Tags: date

due-date
Reopen an issue that is completed status if commented by a customer
Asked by Corin Stabler:

Hello, how do i set a automation rule to re-open an issue that is completed status if commented by a customer?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Corin Stabler](/t5/user/viewprofilepage/user-id/5066658) ,

there is an useful article for that <https://community.atlassian.com/t5/Jira-Service-Management-articles/Reopen-ticket-with-automation-rule/ba-p/916601>

Please check, in automation rule, that the user who performed the action is a user

Adding the automation rule {#toc-hId--498392080}
------------------------------------------------

Now that you're set up with the reopen transition, you need to add the automation rule. As commented above, Service Desk already has a default template for that that we can use. The step to do this is very simple:

1. Go to your **Project settings** \> **Automation**

2. Click in **Add Rule** \> select Comment re-opens issue

3. Edit the fields accordingly:

   1. **Issue Matches** -- change the status name to the name of your Closed status

   2. **User Condition** -\> User who triggered the event is a Customer
   3. **Then do this** -- Transition Issue using Reopen ticket transition that you created

4. **Save** the rule

Hope this helps,

Fabio


author: Rudy Holtkamp
body: Hi [@Corin Stabler](/t5/user/viewprofilepage/user-id/5066658) ,

Make a rule such as:

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

Of course there needs to be transition possible from 'Completed' to 'Reopened' (or whatever you have called the statuses).
How to display custom field in email automation?
Asked by Gregory James:

Hey Guys....I have custom fields, such as "Customer" (which is a drop down menu), "Non Conformity Type" which is multiple checkboxes in a list, and "Complaint Type" which is 2 options, 'internal or external' -- I'm trying to get them to display in the automated email that I have being sent when an issue is created. I also want to do it when an issue is Completed. Here is what I'm using below, but it doesn't return anything. It's blank....

Complaint Type: {{issue.COMPLAINT TYPE.name}}

Customer: {{issue.Customer.name}}

Non Conformity Type: {{issue.non conformity type.name}}

I know this isn't correct, can someone help me?


Answers:
author: Jack Brickey
body: Hi [@Gregory James](/t5/user/viewprofilepage/user-id/5100603) , Please try the following leaving off the ".name"

Complaint Type: {{issue.COMPLAINT TYPE}}

Customer: {{issue.Customer}}

Non Conformity Type: {{issue.non conformity type}}

comments: author: Gregory James
body: Jack, thank you so much it worked, however CUSTOMER didn't work. But the others did. Perhaps its because I have 2 custom fields named Customer? so it doesn't know which one to pick?


author: Gregory James
body: or maybe because its in a drop down menu? I actually checked I only have one custom field called CUSTOMER, which is a dropdown menu of about 110 items, I just want it to display which one is selected. should be "{{issue.CUSTOMER}}" right? or is it different with a list


author: Bill Sheboy
body: Hi [@Gregory James](/t5/user/viewprofilepage/user-id/5100603)

Is your Customer field a user field or a basic selection field?

* If a user field, please try {{issue.Customer.displayName}}
* And if a selection field, please try {{issue.Customer.value}}

Kind regards,  
Bill


author: Gregory James
body: Nah Bill, didn't work, returns Blank values either command


author: Bill Sheboy
body: Okay, let's try this...

Smart values are name, spacing, and case-sensitive...Perhaps the smart value you are using for the "Customer" field is not correct, and that would result in it always being null (empty).

You can check that by finding an example issue with a Customer set, and then use the following how-to. Basically you call the REST API with a browser, and that will show all possible smart values for your fields.

<https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/>


author: Gregory James
body: Bill, I just used the customfield_00000 and it worked like a charm


author: Jack Brickey
body: I am a bit perplexed as to why Bill's suggestion did not work unless there are two custom fields by the same name.


author: Bill Sheboy
body: Hi, Jack! Without seeing the result of the REST API call, I hypothesize possible causes could be:

1. there are indeed two, or more, fields with the same name at that scope, as you note
2. there is a trailing/leading space in the name of the field
3. the smart value is lowercase
4. and the less likely one...the field is somehow tied to an addon and has some dynamic behavior impact resolution.


Tags: custom-field

customer

field
Auto Update Subtask field upon creation based on parent issue
Asked by Iavor Zayn:

Hello community,

I have the following case scenario that i'm fighting with.   
When I create a parent issue (e.g. user story) I populate a field called "Team".   
Once the parent issue is created, subtasks are then created. Each sub-task needs to inherit the team field value from the parent.   
The reason I need it is because we are using one board for two different teams. Each team has it's own swimlane. So I want the subtasks of the parent story to appear in the same swimlane.

I would be great if you help with the automation of this.

Thank you!


Answers:
author: Jack Brickey
body: Yes this is certainly possible. Have you attempted an automation rule as yet? It would look something like below.

* trigger - issue created
* condition - type = subtask
* condition - any other condition to ensure the action is only executed as desired
* action - edit issue, choose your Team field and choose Copy from parent

comments: author: Iavor Zayn
body: Thanks! I havent noticed the option to COPY from parent


author: Kelly Arrey
body: Hi [@Iavor Zayn](/t5/user/viewprofilepage/user-id/4770932)   

Is it a custom field called Team, or is it the Jira built-in Team field?  

If it's the Jira built-in Team field, we ran into a problem with this situation because apparently Jira doesn't allow you to assign Team values to sub-issues - Jira "knows" that all sub-issues belong to the Team assigned to the parent. We went back to our custom Team field when we found out about this the hard way.


Tags: cloud
Trying to use Project Automation to Trigger Legacy Automation Rules
Asked by Vincenzo Ciaravella:

I'm having an issue converting an old JSD (Legacy) Automation which is using a "Customer Notification" template when sending e-mails. This template has elaborate formatting (HTML I believe). Because of this I decided to keep the "Send e-mail" portion of the Legacy Automation and transfer the other sections to the Project Automation (Automation for Jira).

My issue is that I'm having a problem trying to trigger the Legacy Automation. Here's an example that is not responding:

* My Project Automation calls a SIL Script which adds Request Participants to my Jira issue.
* I had set the JSD Automation trigger to "Participant added".
* The JSD Automation does not trigger.

Anyone have any ideas on how my new Project Automation can trigger an existing JSD Legacy Automation.

Thanks,

Vince


Answers:
author: Ste Wright
body: Hi [@Vincenzo Ciaravella](/t5/user/viewprofilepage/user-id/3838799)

I know this isn't the direct question - but would it not be easier to move the other rule to Project Automation, even if it has complex formatting?

Automation will work fine when the two rules are no longer in Legacy - and the effort to make the Legacy rule work could be spent moving the rule across.

You might not find many answers here otherwise, as many users (including myself) don't use Legacy Automation anymore.

Ste


author: Ignacio Pulgar
body: Hi [@Vincenzo Ciaravella](/t5/user/viewprofilepage/user-id/3838799) ,

I agree with the [answer](https://community.atlassian.com/t5/Automation-questions/Re-Trying-to-use-Project-Automation-to-Trigger-Legacy-Au/qaq-p/2224645/comment-id/5639#M5639) by [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470).

Maybe the JSD Automation does not trigger because the action of adding a participant is executed through the REST API (by an automation rule) rather than manually.

Please note even the new Automation rules need to enable a checkbox on the Rule Details section to allow a rule being triggered by actions made by another automation rule:

![Allow-rule-trigger.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/232793i4DDF49EFECEE276D/image-size/large?v=v2&px=999 "Allow-rule-trigger.PNG")

Anyways, I'd also substitute the legacy rule with a new one.

Regards


Tags: jira-service-desk
I am getting remote: Invalid credentials?
Asked by Suhas Kurse:

I am not able to clone the repository from the website.

I have downloaded the latest extensions


Answers:
author: Patrik S
body: Hello [@Suhas Kurse](/t5/user/viewprofilepage/user-id/5488254) and welcome to the Community!

This error is returned when you are providing the wrong credentials for the authentication or when you don't have access to the content.

To authenticate git operations over HTTPS you need to provide the following:

* **username** : your bitbucket account username. It can be found and changed under your [personal bitbucket settings](https://bitbucket.org/account/settings/).
* **app password** : a token used to authenticate (it's not the same password used to login to the website). If you haven't already, you can [create a new app password.](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/)

Could you confirm if you are using the credentials as per the above instructions?

I'd also recommend going through the steps outlined in the article [Authentication Error - "remote: Invalid username or password"](https://confluence.atlassian.com/bbkb/authentication-error-remote-invalid-username-or-password-942864127.html) that cover other scenarios where you could receive that error message, and steps to fix it.

I hope that information helps!

Thank you, [@Suhas Kurse](/t5/user/viewprofilepage/user-id/5488254) !

Patrik S


Tags: bitbucket-cloud

cloud
CODEOWNERS file doesn't work
Asked by Stephen Baker:

I received an email with a link to [this](https://bitbucket.org/blog/code-owners?utm_source=newsletter-email&utm_medium=email&utm_campaign=april2024-BB-digest_EML-18132&jobid=106493033&subid=1613409111) and quickly added a .bitbucket/CODEOWNERS file to my project but when I created a pull request, the Reviewers were never populated. I made several pull requests after checking in the required CODEOWNERS file, and no dice.  

My file only has one line in it. For the sake of this example, let's say my workspace slug is **spider-man** . I also have a group called **javascripters** with 3 members associated to it. This is my file:  

\* @ spider-man/javascripters:all  

In the snippet above, since the formatting in this text editor does too much magic, I had to add a space after the **@** symbol that I don't actually have in my real file.


Answers:
author: Patrik S
body: Hey [@Stephen Baker](/t5/user/viewprofilepage/user-id/5031160) ,

as I posted in [your comment on the other question](https://community.atlassian.com/t5/Bitbucket-questions/Re-Re-CODEOWNERS-doesn-t-work/qaq-p/2686533/comment-id/103833#M103833) , I've raised a support ticket for you to investigate this issue further.

You will be receiving the ticket link in your email soon.

Thank you!

Patrik S


Tags: bitbucket-cloud

cloud
My plan is cloud Standard and I need to buy more 6 user. How can I buy it?
Asked by Ang?lica Queiroz:

I'm not finding the way to buy more users and I don't want to upgrade to premium.


Answers:
author: Ben
body: Hi [@Ang?lica Queiroz](/t5/user/viewprofilepage/user-id/5488129)

If you are on a monthly plan, you can simply [add more users by inviting them](https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/) and these will be counted against your next Standard monthly bill.

If you are on an annual plan, please raise a ticket with our billing team for further assistance as they will be able to provide quotes and assist you with modifying your plan:

* <https://www.atlassian.com/company/contact/purchasing-licensing#/>

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Ang?lica Queiroz
body: It worked! Thank you Ben!


Tags: bitbucket-cloud

cloud
"We couldn't log you in" error
Asked by Randy Stautzenbach:

Hello, I was trying to log in using my personal account, and now my browser is stuck showing this "we couldn't log you in" error and I cannot get into my work account. I can get log into my work account if I open a new incognito window, but a normal browser window not in incognito mode is stuck on the we couldn't log you in message even after clearing cookies.

I saw some other support messages saying it may be due to a dormant account and to submit a new question, that is likely the case with my personal account. But I should be able to switch to my work account log in even if something is wrong with my personal account.


Answers:
author: Mark C
body: Hi [@Randy Stautzenbach](/t5/user/viewprofilepage/user-id/5488098)

<br />

Welcome to the community.  

I checked your Bitbucket Cloud account on our end but it was not marked as a "Dormant" account.

Since you were able to log in via an incognito window, this seems to be a browser issue. Would it be possible for you to try to turn off any browser extensions/add-ons you currently have that might be interfering with the login process?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How to copy the content of a directory to azure storage using pipelines
Asked by sschroders:

Hi,

I am trying to setup a ci/cd for our frontend react code which needs to build and deploy the frontend to azure storage. I am using **Azure Storage Deploy**pipe but I can mange to only copy the whole directory over instead of the files inside or only one file / folder from within the main dir. How can I set the YMAL correctly to only coy the files and folders of my main folder over?


Answers:
author: Igor Stoyanov
body: [duplicate](https://community.atlassian.com/t5/Bitbucket-questions/Re-Deploying-the-contents-of-a-directory-with-Bitbucket/qaq-p/2686345/comment-id/103823#M103823)


author: Patrik S
body: Hello [@sschroders](/t5/user/viewprofilepage/user-id/4412281)

and thank you for reaching out to Community!

You can configure the path that will be deployed by the atlassian/azure-storage-deploy pipe by setting the SOURCE variable in the pipe definition on your YML file.

For example, to deploy a folder named **main**inside the current directory, you can configure the pipe as follows:

```
script:
  - pipe: atlassian/azure-storage-deploy:2.2.1
    variables:
      SOURCE: 'main'
      DESTINATION_STORAGE_ACCOUNT_NAME: 'https://mystorageaccount.blob.core.windows.net'
      DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
      DESTINATION_CONTAINER_NAME: 'my-container'
```

SOURCE accepts both directory or filename, so to deploy a single file named **my-file.txt**, the pipe definition would be:

```
script:
  - pipe: atlassian/azure-storage-deploy:2.2.1
    variables:
      SOURCE: 'my-file.txt'
      DESTINATION_STORAGE_ACCOUNT_NAME: 'https://mystorageaccount.blob.core.windows.net'
      DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
      DESTINATION_CONTAINER_NAME: 'my-container'
```

You can find additional examples and descriptions of each of the pipe's variables on it's official documentation page :

* [atlassian/azure-storage-deploy](https://bitbucket.org/product/features/pipelines/integrations?search=azure&p=atlassian/azure-storage-deploy)

Hope that helps! Let us know in case you have any questions.

Thank you, [@sschroders](/t5/user/viewprofilepage/user-id/4412281) !

Patrik S


Tags: azure

bitbucket-cloud

bitbucket-pipelines

cloud

pipes

storage
Unable to mirror the repository from Bitbucket cloud to OCI
Asked by Charan Bharadwaj:

Getting error as NotAuthorizedorNotFound(404) while trying to connect from OCI to bitbucket cloud using app password while mirroring the repo.   
Followed the documentation from oracle end. Posting the link below.  
Kindly let me know the solution for this.

Document: <https://docs.oracle.com/en-us/iaas/Content/devops/using/mirror_repo.htm#mirror_repo>

Thanks,

Charan C


Answers:
author: Patrik S
body: Hello [@Charan Bharadwaj](/t5/user/viewprofilepage/user-id/5487912) and welcome to the Community.

Checking the documentation of the OCI connector you shared, it indeed looks like the tool expects you to use a username and app password to authenticate. I suspect it may be related to the scope you selected while creating the app password.

As a suggested test, I'd recommend trying creating a new app password on your bitbucket account selecting all the scopes, and seeing if the error persists.

If you are still facing the error with the full scopes app password, I recommend trying to first test your ability to authenticate with Bitbucket with git directly (removing the OCI tool of the equation).

For that, you can try cloning the same repository with git, using the same exact credentials you configured in OCI, and check if the clone succeeds :

```
git clone https://{username}:{app_password}@bitbucket.org/{workspace}/{repository}.git
```

This will help to confirm if you are using the correct credentials and if your account has access to the repository in question.

Hope that helps! Should you have any questions, feel free to ask!

Thank you, [@Charan Bharadwaj](/t5/user/viewprofilepage/user-id/5487912) !

Patrik S

comments: author: Charan Bharadwaj
body: Hi Patrik,

Thank you for your suggestion.  
When i cloned using the above command i was able to clone the repo in my local repo.  
So I'm only not able to authenticate through OCI.  
Is it the problem with OCI or something?

Thanks,

Charan C


author: Patrik S
body: Hello [@Charan Bharadwaj](/t5/user/viewprofilepage/user-id/5487912) ,

Thank you for executing the tests!

The fact that the clone was successful using git confirms that the credentials and your permissions in bitbucket are setup correctly.

The issue you are facing seems to come from the OCI tool particularly. Unfortunately, we don't have much expertise on this tool as it's developed and maintained by Oracle themselves, so I would suggest reaching out directly to the Oracle support portal/community as they will be better equipped to provide you with instructions on how to configure that tool.

Thank you, [@Charan Bharadwaj](/t5/user/viewprofilepage/user-id/5487912) !

Patrik S


Tags: bitbucket-cloud

cloud
Not receiving email to enable 2FA
Asked by Kayleigh Regan:

Not receiving email to complete verification process. I have used Microsoft Authenticator for authentication.


Answers:
author: Patrik S
body: Hey [@Kayleigh Regan](/t5/user/viewprofilepage/user-id/5487872) , and welcome to the Community!

I see that your email was added to the Atlassian suppression list because your email provider bounced the email with the following error :

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy
```

I went ahead and removed your email address from the suppression list, so you should be able to receive new emails as of now.

Could you please try setting up the 2FA again and let us know if the email is delivered?

Thank you, [@Kayleigh Regan](/t5/user/viewprofilepage/user-id/5487872) !

Patrik S

comments: author: Kayleigh Regan
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

That works now :) Thank you very much

Kayleigh


author: Patrik S
body: You're very welcome:)

Happy to hear that it worked!

Feel free to reach out to the community if you ever need help.


author: Emilio Garcia-Calitz
body: Hi - Just a couple of things i'd check:

1. Check if the email has been delivered - but if it was rerouted to a different folder in your mailbox?

2. Do you have access to check if the email has been quarantined?

Thanks

<br />

Emilio

comments: author: Kayleigh Regan
body: Hi Emilio

1. I checked spam and any other folders, no email delivered

2. No I don't think so

Thanks


Tags: bitbucket-cloud

cloud
Escaping git commit reference in markdown
Asked by Gary Giesen:

Is there a way to escape git commit references in Markdown? I have a list of UUIDs that Bitbucket thinks the first part of is a git commit reference, and is generating links to (non-existent) commits.

The list looks like this:

- 95ffdfaf-f5bd-419a-bb79-1a4a36848df3  
- 330b20cc-5c7f-4e6f-bfa5-c3606f2b4558  
- 3b287b0c-044e-4d81-9432-96ade4efdb61

and the part from the beginning to the first hyphen is being treated as a reference to a commit hash. I tried escaping with \`\\\` but that does not work.

<https://support.atlassian.com/bitbucket-cloud/docs/highlight-syntax-and-mark-up-issues/> makes no reference to how to escape the automatic reference generation.


Answers:
author: Syahrul
body: G'day, Gary

Thanks for raising this with us. I am checking this and will get back to you with an update once I have any.

However, I believe it's possible to escape the reference if you use code block for example:

````
```
- 95ffdfaf-f5bd-419a-bb79-1a4a36848df3
- 330b20cc-5c7f-4e6f-bfa5-c3606f2b4558
- 3b287b0c-044e-4d81-9432-96ade4efdb61

```
````

Let me know if that works for you.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud

markdown
getting fatal error when pushing to git
Asked by Brittany:

When trying to push repository through to git getting the error below:

Fatal :Invalid Credentials

Authentication failed.


Answers:
author: Theodora Boudale
body: Hi Brittany, and welcome to the community!

The error indicates that the credentials used by the push command are incorrect.

If you use username and password for authentication, please keep in mind that the account's password cannot be used for Git operations. You will need to use an app password instead:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

The username should be the one listed here: <https://bitbucket.org/account/settings/>

If you are not asked for credentials when you push, then a credential manager may be configured for Git and incorrect credentials may be stored there. In this case, you will need to clear any saved credentials for bitbucket.org from the credential manager and try the operation again.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud