youngmon/atlassian-qna huggingface dataset:
Autofill Text Custom Field
Asked by Sagi Gueta:

Hello,

I'm trying to define an automation that will auto fill a regular text field ("Aha! Release Version") based on another version custom field ("Released Version").

I'm using as a set value the following smart value:

{{issue.fields.customfield_10206}}

but for some reason.. there is nothing going on. I've tried several other things that worked good for me in the past but nothing will do.

Do you have any idea what can possibly be the right method for that issue?

Thanks in advance :)

![Community.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/218912iBBDBEB51254509F8/image-size/large?v=v2&px=999 "Community.JPG")


Answers:
author: Mikael Sandberg
body: You need to remove field from your smart value, it should look like this:

{{issue.customfield_10206}}

comments: author: Sagi Gueta
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) Hey thanks for the idea!

It's works now - but still not as I've expected, as it shows the id of the version, instead of its name.. Is there any option to make it copy that value as it shown in released version?

![Community 2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/218921iC2F4FD19A1834F82/image-size/large?v=v2&px=999 "Community 2.JPG")


author: Mikael Sandberg
body: Okay, so add .name to your smart value and that should give you the name.


author: Sagi Gueta
body: Works great now :D

Thanks!


Tags: version
Creating an issue when a label is used, does not copy over summary, description or attachments
Asked by Adam Rivera:

I created an automation that creates a new issue on a different board/project in the same instance when a certain label is used. It kind of works, however, it does not copy over the summary, description or attachments. So we are left with a blank card in the new board.  
Any ideas?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Adam Rivera](/t5/user/viewprofilepage/user-id/4764887)

Care to share your automation, as well as the permission schemes for the project you are creating the project to? Which actor is running the rule? What's on the rule audit log? Did you place any log inside your rule to see the values being copied?

comments: author: Adam Rivera
body: ![auto.png](https://community.atlassian.com/t5/image/serverpage/image-id/218720iE7F5C300C9B4CC28/image-size/large?v=v2&px=999 "auto.png")

I'm pretty new to using automations here so probably a user error.


author: Alex Koxaras _Relational_
body: Need to know the rest of the stuff I asked, plus the values you used inside the edit component of your automation rule.


author: Simmo
body: It sounds like you might need to use Clone issue perhaps?
How to transition parent back to QA if a subtask moves from done back to QA.
Asked by Heather M:

Sometimes we re-open done issues and move back to status QA or In Progress, so we're needing the parent issue to also move back to QA or In Progress.

I've successfully automated moving parent issue to done when subtasks are done but not the other way around.

Please help.


Answers:
author: Tharaka_Hettiarachchi
body: Hi [@Heather M](/t5/user/viewprofilepage/user-id/5043907) ,

Please Check Following attachment

1. Trigger the issue when transition from status 'DONE' to 'QA TODO' (or inProgress)

2. Check that the triggered issue is a sub task

3. Create branch for parent

4. Create new action to transit parent issue to triggered task's status

![Screenshot 2022-10-03 at 14.50.30.png](https://community.atlassian.com/t5/image/serverpage/image-id/218860i0381A745AF2D732F/image-size/large?v=v2&px=999 "Screenshot 2022-10-03 at 14.50.30.png")

comments: author: Heather M
body: Thank you, Tharaka! I changed condition type "is one of" and now all works perfectly. IE) if I have three subtasks and one moves from Done to In Progress, then Parent Issue moves from Done to In Progress too. ![Jira Auto.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/219152i02E5E419827D8526/image-size/large?v=v2&px=999 "Jira Auto.JPG")


author: Mark Segall
body: Hi [@Heather M](/t5/user/viewprofilepage/user-id/5043907) and welcome to the community!

It would work similar to your existing rule:

* TRIGGER: Issue transitioned From Done
* CONDITION: Issue Type = Sub-Task  
  *Note - This condition is not required if you're on a Company-Managed project*
* BRANCH (Parent)
  * CONDITION: Status = Closed
  * ACTION: Transition issue to your desired status  
    *Note - You can set the issue to transition to the same status as the sub-task if desired*
How to report the link of the jira issue in a slack message?
Asked by Sari:

Hello,

I recently created an automation so that , whenever the issue "Blocker" is created, an automatic message pops up in a slack channel.   

I would like to report also the link to this ticket, so that we can easily click on that when the message appears in slack.   

Do you have![Screenshot_1.png](https://community.atlassian.com/t5/image/serverpage/image-id/218597iD35D1C651983D10E/image-size/large?v=v2&px=999 "Screenshot_1.png") any hint about how to do It?


Answers:
author: Stefan Salzl
body: Hi [@Sari](/t5/user/viewprofilepage/user-id/4688972) ,

if I got your requirement correctly your are struggling with the link option in the slack message.

This should be possible via smart values. Try to use the following in your slack message:

```
{{issue.url}}
```

Please let me know if this was helpful and solves your problem.

Best  
Stefan

comments: author: Sari
body: It works, thanks [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) !!!


author: Stefan Salzl
body: awesome! happy to know you got that working ????
How to clone an Issue from a Kanban Board to a Scrum Board?
Asked by Wagner Thierry:

Hello, what I need is, when an Issue transitions to the last status in my Kanban Board, I wanted that issue to be cloned automatically in the Backlog of my Scrum Board from the same Project, is that possible to do?


Answers:
author: Mikael Sandberg
body: Hi [@Wagner Thierry](/t5/user/viewprofilepage/user-id/5041198),

Welcome to Atlassian Community!

Yes, that is possible and is fairly simple to do. Your automation should trigger on the transition to the last status on your Kanban board, then clone the issue into the project for your Scrum board. If both boards are in the same project then you just have to make sure the clone is picked up by the filter used for the Scrum board.

comments: author: Mikael Sandberg
body: Your automation would look something like this (except for the add comment):

![Screen Shot 2022-09-27 at 4.18.27 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/218122i16CA82E32E91D2F3/image-dimensions/184x224?v=v2 "Screen Shot 2022-09-27 at 4.18.27 PM.png")


author: Wagner Thierry
body: Thank you !
It is possible to create an automation rule than it creates a issue in another atlassian account?
Asked by Jes?s Rafael Mart?nez Jim?nez:

I'm looking for to create an issue from my account to another JIRA account, and I don't know if this is possible.


Answers:
author: Callum Carlile _Automation Consultants_
body: [@Jes?s Rafael Mart?nez Jim?nez](/t5/user/viewprofilepage/user-id/3003313) If you're wanting to create an issue in another instance, you would need to use the Trigger Webhook automation action and create an issue over the API

Here are some links which may help:

[Create an API token](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/) - you will need to do this in your destination account, encode it and then will use this Basic auth token in your triggering webhook authorization

[Create issue over the API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post)

comments: author: Jes?s Rafael Mart?nez Jim?nez
body: Thank you, [@Callum Carlile _Automation Consultants_](/t5/user/viewprofilepage/user-id/2348878)

Let me check this option to try to implement it.


author: Stefan Salzl
body: Hi [@Jes?s Rafael Mart?nez Jim?nez](/t5/user/viewprofilepage/user-id/3003313)

just to clarify that we are on the same page:

with ?in another account" you mean create an issue ?in the name of another user" within the same jira instance/site?

Best  
Stefan

comments: author: Jes?s Rafael Mart?nez Jim?nez
body: Hi, [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993)

I mean, in a different instance, I need to replicate some when are created issues using Automation and I don't know if it's possible to do.


author: Stefan Salzl
body: So if it's a whole different site (which means the 2 instances have different domains) it's not possible with simple jira automation actions. If you are familiar with Rest API you I guess it would be possible.

Best  
Stefan


author: Jes?s Rafael Mart?nez Jim?nez
body: Thank you so much for your answers, [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993)


author: Adam Rivera
body: I believe I am having a similar issue. I created an automation that creates a new issue on a different board/project in the same instance when a certain label is used. However, it does not copy over the summary, description or attachments. Any ideas?

comments: author: Stefan Salzl
body: Hi [@Adam Rivera](/t5/user/viewprofilepage/user-id/4764887)

My first guess without knowing the details would be that it's a single project rule. In lrder to process in other projects than the one the rule was triggered the rule needs to be configured as a multi-project or gloabl rule. This can be done in the rule details.

Best  
Stefan


author: Callum Carlile _Automation Consultants_
body: [@Adam Rivera](/t5/user/viewprofilepage/user-id/4764887) And if \^this is the case, you will need to amend this project scope via the global automations page (System \> Global Automation), by selecting 'Multiple Projects' and then adding both the triggering and receiving projects to the scope in the Rule Details section


Tags: cloud
How to send an email every week with number of issues in progress and done (using Jira Automation)
Asked by Max Haley:

Looking for an automation rule to send out an email that specifies

1. How many issues are done on the Project
2. How many issues are in progress on the Project


Answers:
author: John Funk
body: Hi Max,

You can create an Automation Rule like below using the #lookupIssues functionality.

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

comments: author: Max Haley
body: Thank you, John!


author: John Funk
body: You are welcome. :-)


author: Alexis Gutierrez
body: I would love to use this on my test board..


author: Rilwan Ahmed
body: Hi [@Max Haley](/t5/user/viewprofilepage/user-id/4656750) ,

I would suggest to Create filters and add subscription to them.

<https://www.atlassian.com/blog/jira-software/jql-the-most-flexible-way-to-search-jira-3-of-4>

comments: author: Max Haley
body: Thanks, this is pretty neat its just I can customise the "From" sender by using email automation. I wonder if I can create a filter, and then devise the same email be triggered automatically via automation?
How do I automatically trigger a status change on epic based on the status of its children
Asked by Shashank Agrawal:

We are trying to automate our workflow. Here is what we would like to do:

We want to change the status of a parent issue (an Epic) when the status of one of its children changes. For example, I have an Epic which has 2 dev story and 2 uat story. If any of my dev story changes to "In progress" then Jira automation should scan if all children dev stories are In progress only then i want epic to change status to In progress and ignore UAT stories which are also linked to same Epic.

Currently i can scan either one linked child or all. Am i doing anything wrong or is there a better solution to achieve this via Jira automations?


Answers:
author: Mark Segall
body: Hi [@Shashank Agrawal](/t5/user/viewprofilepage/user-id/2508195) - Here's an example of a rule that I use in one of my projects. When an issue transitions, it performs two epic branches (one for opening and one for closing).

![2022-09-26_10-01-03.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/217805i2DBD780E11120050/image-size/large?v=v2&px=999 "2022-09-26_10-01-03.jpg")

comments: author: Shashank Agrawal
body: In the first epic branch, it will scan all stories linked to epic.. i want to scan only 2 dev stories and ignore the rest of the stories (uat story)


author: Mark Segall
body: How are the dev and uat stories delineated?
Bitbucket Infrastructure as Code Security Scan : how to fail on high
Asked by sudhakar:

Hi   
I'm using the following code in pipeline:  

```
 - step:

name: 'Iac scan'

script:

 - pipe: atlassian/bitbucket-iac-scan:0.2.0

variables:

FILES_TO_SCAN_PATH: 'template.yaml'

SCAN_EXTRA_ARGS:

 - "--fail-on"

 - "high"

# CONFIG_PATH: '<string>' # Optional.

CREATE_REPORT: "true" # Optional. Default: `false`

# DEBUG: "<boolean>" # Optional. Default: `false`

```

but the step never fails even if a high result is found:  
Results Summary:  
143
HIGH: 1

?


Answers:
author: Oleksandr Kyrdan
body: Hi [@sudhakar](/t5/user/viewprofilepage/user-id/5430070)

Thanks for your question!

Try to pass the next extra args instead:

```
SCAN_EXTRA_ARGS: 
  - "--fail-on=high"
```

Best regards,  
Oleksandr Kyrdan

comments: author: sudhakar
body: Thank you.

I tried what you recommended. However the pipe still succeeds:

```
- step:

name: 'KICS Pipe'

script:

 - pipe: atlassian/bitbucket-iac-scan:0.2.0

variables:

FILES_TO_SCAN_PATH: '.'

SCAN_EXTRA_ARGS:

 - "--fail-on=high"
```

From the log:  

```
-env=FILES_TO_SCAN_PATH="." \

--env=SCAN_EXTRA_ARGS_0="--fail-on=high" \

--env=SCAN_EXTRA_ARGS_COUNT="1" \

--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \

bitbucketpipelines/bitbucket-iac-scan:0.2.0

WARNING: Kics scan result status code: 50,

? Pipe has finished successfully.

Scanning with Keeping Infrastructure as Code Secure v1.7.13

Passwords And Secrets - Generic Secret, Severity: HIGH, Results: 1

Description: Query to find passwords and secrets in infrastructure code.

Platform: Common

Learn more about this vulnerability: [1]: template.yaml:97

096: Variables:

097: MY_SECRET_KEY: <SECRET-MASKED-ON-PURPOSE>

098: AWS_ACCESS_KEY_ID: "12345678901234567890"

Results Summary:

HIGH: 1

MEDIUM: 0

LOW: 0

INFO: 0

TOTAL: 1

A new version 'v2.0.0' of KICS is available, please consider updating
```

Regards


author: Oleksandr Kyrdan
body: Hi [@sudhakar](/t5/user/viewprofilepage/user-id/5430070)

The new version of the pipe with FAIL_ON support was released:

Scan the sources and pipe should fail if the KICS scanner's [result status code](https://docs.kics.io/latest/results/#results_status_code) is more than or equal to provided threshold value  

```
script:  - pipe: atlassian/bitbucket-iac-scan:0.4.0    variables:      FILES_TO_SCAN_PATH: ./my_files_to_scan_dir      FAIL_ON: 40
```

<br />

Best regards,  
Oleksandr Kyrdan


Tags: bitbucket-cloud

cloud
CODEOWNER's relation to "default reviewer" and its automation in PR created by API
Asked by Kyle Li:

1. About the relationship to existed defined "default reviewer", will CODEOWNER be an addon? or replacement?  
2. When PR is created by calling <https://api.bitbucket.org/2.0>, will the "codeowner" be automatically added? the current "default reviewer" is not automatically added.


Answers:
author: Theodora Boudale
body: Hi Kyle,

Thank you for reaching out.
> 1. About the relationship to existed defined "default reviewer", will CODEOWNER be an addon? or replacement?

If user A is a default reviewer and user B is in the CODEOWNERS file for \*.py files, then raising a PR where \*.py files have changed is going to add both user A and user B to the reviewers.

Please keep in mind that these users are added as reviewers on the pull request creation page, and they are not enforced. The user who raises the PR can still manually remove reviewers that are added by Codeowners or by Default reviewers.

> 2. When PR is created by calling <https://api.bitbucket.org/2.0>, will the "codeowner" be automatically added? the current "default reviewer" is not automatically added.

Neither users in CODEOWNERS nor default reviewers will be added when creating a PR via API. If you use the API, you will need to explicitly specify reviewers in the API call. You can see an example here:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post>

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How do I Invite a user to my repository?
Asked by William James:

A picture speaks a thousand words. No input works here, not sure what the solution is or what I could possibly be doing wrong.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/319385i82EAF4E77CA58364/image-dimensions/412x177?v=v2 "image.png")


Answers:
author: Syahrul
body: G'day, [@William James](/t5/user/viewprofilepage/user-id/5479436)

Welcome to the community!

To invite a user to your workspace or repository, enter their full email address and hit enter. Then, select the appropriate permission level and confirm the invitation.

Once the user receives the invitation, they should open and accept the link before accessing your workspace or repository.

Feel free to check our documentation below for more information:

[Grant access to a workspace](https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/)

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Help with missing repositories.
Asked by CMRL:

My university recently changed the bitbucket plan from free to academic. Since then, when I try to login, all the repositories that were present are missing. The username for the previous account with repositories was *REDACTED* . But the current account has a different username of *REDACTED*. How do I resolve this?


Answers:
author: Mark C
body: Hi [@CMRL](/t5/user/viewprofilepage/user-id/5479273),  

Welcome to the community.

I can see that you're currently the administrator of the workspace.  
Could you confirm if you can access the workspace repositories here? - <https://bitbucket.org/REDACTED/workspace/repositories/>

Regards,  
Mark C

comments: author: CMRL
body: I now have admin access to the workspace. Thank you.


author: mark w
body: I have the same problem all my repos have dissappeared I had since years back,

all I see is

Resource not found {#toc-hId--352412519}
----------------------------------------

so what, have atlassian deleted 10 years worth of repos if you have not logged in for a few months?


author: Mark C
body: Hi [@mark w](/t5/user/viewprofilepage/user-id/5544971)  

Could you try raising a support request for us to check? - <https://support.atlassian.com/contact/#/>  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
What does account name stand for?
Asked by Lawrence Wong:

Hello People!

Just wanted to see what does account name stand for on this code block:

curl -X PUT <https://api.bitbucket.org/1.0/users/{accountname}/invitations> \\ --header "Content-Type: application/json" \\ --data '{"email":"address@example.com","group_slug":"my-group"}'

It is about sending invites to a userGroup in Bitbucket. [Link to Documentation](https://support.atlassian.com/bitbucket-cloud/docs/invitations-resource/)

So far I tried Workspace name, Workspace Id, my username, my display name but nothing works.

Thanks in advance for the help.


Answers:
author: Mark C
body: Hi [@Lawrence Wong](/t5/user/viewprofilepage/user-id/5444486),

Thank you for reaching out to the community.

The invitations API should support workspace ID or username.  
Are you getting any error messages?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Error import private gitlab repository to bitbucket cloud
Asked by Corentin Faivre:

Hello !

I try to import a private gitlab repository self-hosted to a Bitbucket cloud repo.

I have always the same error :

15:25:23 git import for: <https://git.xxx.xx/repo/ct5.git>

15:25:24 Cloning <https://git.xxx.xx/repo/ct5.git>...

15:25:30 Remote Git clone failed: \<class 'bitbucket.apps.asyncx.tasks.RepoImportTask.ImportException'\>: Command failed. Return value: 128

I use this [documentation](https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository-from-github-or-gitlab/) and I read a few questions here but no success

I've tried quite a few things :

* HTTPS Identification - username (or mail) with password
* Personal Acces Tokens

But I don't know, I have the same error...

Maybe it comes on a gitlab server?

Thank you for your feedback !


Answers:
author: Syahrul
body: G'day, [@Corentin Faivre](/t5/user/viewprofilepage/user-id/5479055)

Welcome to the community!

To begin with, I recommend cloning the repository onto your local machine and identifying the type of credentials used for the process. If you need a username and account password, fill out the import forms with those credentials. This is because the import process is essentially the same as when you clone the repository locally.

However, if the import still fails, I suggest following these steps:

1. Clone the bare repository locally using --mirror options  
   git clone --mirror \<URL\>
2. Create a repository in Bitbucket cloud
3. Change the directory into the bare repo cloned locally and update the URL to point them to the newly created repository in Bitbucket  
   git remote set-url origin \<NEW repo URL\>
4. Check if the URL is updated correctly  
   git remote -v  
5. If the URL now points to the repository correctly, use git push to push the repo.

For more information on how to change the remote URL please refer to the following documentation: [Change the remote URL to your repository](https://support.atlassian.com/bitbucket-cloud/docs/change-the-remote-url-to-your-repository/)

Regards,  
Syahrul

comments: author: Corentin Faivre
body: Thank's for your answer ! It's works !

Regards,

Corentin


Tags: bitbucket-cloud

cloud