youngmon/atlassian-qna huggingface dataset:
Can I introduce a trigger rule for auto-creating stories when an EPIC is created?
Asked by jaspreet kaur:

I want JIRA to auto-create stories once I create an EPIC. Do I need to create a trigger rule, if yes, then, how to link the trigger to EPIC creation.


Answers:
author: Dave Mathijs
body: Hi [@jaspreet kaur](/t5/user/viewprofilepage/user-id/5097074) welcome to the Atlassian Community!

Yes, that is possible with Automation:

* **When**: Issue created
* **If**: Issue matches JQL issuetype = Epic
* **Then** : Create a new issue in:
  * Project: Same project
  * Issue type: Story
  * Summary: set default
  * Epic Link: Copy from trigger issue
* **And**: Create a new Story in Same project and Epic Link: Copy from trigger issue
*
  * Project: Same project
  * Issue type: Story
  * Summary: set default
  * Epic Link: Copy from trigger issue

comments: author: Ignacio Pulgar
body: Hi [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) ,

Please, correct me if I'm wrong, but the trigger issue is an Epic which lacks a value in the Epic Link field, so I think the value of Epic Link should be {{issue.key}} instead.

Regards


author: Aleksandra Bosacka _Deviniti_
body: Hello [@jaspreet kaur](/t5/user/viewprofilepage/user-id/5097074)

It's Aleksandra from Deviniti and after reading your post, I think you may find our app handy :)

With the help of [Issue Templates for Jira](https://marketplace.atlassian.com/apps/1211044/issue-templates-for-jira?hosting=cloud&tab=overview&utm_medium=answer&utm_source=community), you can create a repository of reusable templates, and then use them to create all kinds of repetitive tasks in your projects.

The app supports various types of relations, including Epic templates with Stories or even issue links. For more details about this use case, I encourage you to see this chapter in the manual:

<https://deviniti.com/support/addon/cloud/issue-templates/latest/copy-epic/>

I hope you will find it useful. In case of any questions, feel free to reply back in this thread. I'll be happy to help!

Cheers,  
Aleksandra


author: Ignacio Pulgar
body: Hi [@jaspreet kaur](/t5/user/viewprofilepage/user-id/5097074) ,

Here you have a screenshot on how to set it:

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

Hope it helps.
Is there a way to change the view options in the rule details area?
Asked by Matthew Kasper:

I have users wanting to set up automation rules that create multiple sub-tasks when triggered. Some of these users are looking to set up 10 or more subtasks at once. It is a bit difficult for them to update these rules though, as when looking at the rule details it only displays the issuetype being created and in which project.

It would be useful to be able to see the Summary or other fields of your choosing all in one view. I get you can click on each individual step to see it's details, but when you have an automation with a dozen or more steps it would be nice to be able to view it all at one time. Is there any way to change what information is displayed here:

![automation.jpg](/t5/image/serverpage/image-id/229508i30D7E7E73CAD701B/image-size/large?v=v2&px=999 "automation.jpg")


Answers:
author: Darryl Lee
body: Hi [@Matthew Kasper](/t5/user/viewprofilepage/user-id/3927258) - this is a great idea, because yeah, that UI really sucks. I mean, what other project would a Sub-task even even be created in? That's dumb. (It's probably because they're using the same code for regular Issue creation, which *could* be in another project.)

Anyways, I'm not sure why, but I was able to create a Feature Request here:

[AUTO-243](https://jira.atlassian.com/browse/AUTO-243)

So I guess folks can vote on it?

comments: author: Maksim Marholin
body: Hi [@Matthew Kasper](/t5/user/viewprofilepage/user-id/3927258) [@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322) thanks a lot for your feature request!

Yes, please, vote on it once you have a chance.

Best regards.


Tags: jira
During sub task creation, can the parent's summary be included in the sub task summary?
Asked by Jonathan Smith:

Morning,

I am creating a user management system in JWM for a business group.

* Parent task = employee name
* Sub tasks = change tasks

When the 50+ sub tasks fire off, they have common language and does not identify WHO the action is for.

* Sub task example: Remove from X systems.

Is it possible for the sub task summary field to **include** the parent summary?

* **Field = {parent.summary) -The sub task title**
* Result: Jonathan Smith - Remove from X systems.

Worst case, I direct the assignees to click up a level and view the parent task... OR we create a redundant field called employee name where it matches the summary...


Answers:
author: Mark Segall
body: Hi [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1254033) - Yes this is totally possible with Jira Automation. You can do something like this:

* TRIGGER: Issue Created
* CONDITION: Issue Type = Sub-Task
* ACTION: Edit Issue (Summary)
  * {{issue.parent.summary}} - {{issue.summary}}

After the sub-task is created, it will prepend the original summary with the parent summary.

comments: author: Jonathan Smith
body: Thanks Mark! I'll try this out and see which way the business would rather go.


author: Jonathan Smith
body: [@Mark Segall](/t5/user/viewprofilepage/user-id/4666637) I created a new branch (for sub tasks) at the bottom of my 50 item automation which edits the summaries to your code; This works perfectly!

Thanks!


author: Jonathan Smith
body: Workaround:

1. Created new field called "Business User" (free text)
2. Automation will copy triggered summary into Business User field on sub task.

I'd still like to know if there is a coding solution for this vs adding a new field.

Cheers.
How to use track time time spent with the less than condition?
Asked by Rafael Castillo:

I am trying to create an automation using advance compare conditions.

I am in an If statement and currently my first value is:

**{{issue.timetracking.timeSpentSeconds}}**

Condition is: **less than**

Second value:**1801**

So essentially want is if the developer logs a time track of 30 minutes or less then something should happen, that something is changing another issue filed called "actual user story" which should be changed to 1.

The if tree checks for multiple of these conditions to assigned different story points based on a time estimate.

For some reason this is not working for me, when I add time to my track time nothing happens. Help please.


Answers:
author: Ignacio Pulgar
body: Hi [@Rafael Castillo](/t5/user/viewprofilepage/user-id/4941385) ,

If Story Points were meant to predict the time it may take to complete a given issue, maybe it would be better to use the Time Estimate field instead (included in the Time Tracking set of fields). That way you can go one step further and easily see which issues took more time to complete than originally estimated with this simple query:

workratio \> 100

Anyways, assuming you had conveyed that 1 Story Point = 30 minutes and that the Actual User Story Points field were of number type, then you could set a rule like this one:

(Please, substitute the Story Points field with your Actual User Story Points field in this rule)

![time-tracking-to-story-points.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/232828i806ABE4F61516BB0/image-size/large?v=v2&px=999 "time-tracking-to-story-points.PNG")

Hope it helps.


author: Jack Brickey
body: Hi [@Rafael Castillo](/t5/user/viewprofilepage/user-id/4941385) , if you share a screenshot of your actual automation rule I will see if I can assist. Also could you tell me what the audit log is indicating when the rule is triggered? I'm trying to understand where the rule is exiting.


Tags: time
How do I automate a periodic export of filtered Jira data to a CSV file?
Asked by Jeffrey Lyons:

I see how to do an export from the UI on-demand, but I need to do a daily export of selected FEATURE records to sync to another system, via GSheet.


Answers:
author: Lynne Ratcliffe
body: Hi [@Jeffrey Lyons](/t5/user/viewprofilepage/user-id/5096274) are you familiar with the free add on [Jira cloud for sheets](https://marketplace.atlassian.com/apps/1220382/jira-cloud-for-google-sheets-official?tab=overview&hosting=cloud). We use this for a lot of our reporting. You set up your query of what you want to pull into sheets and there is a setting to schedule it to update. Not aware of an automated save to CSV but it can be downloaded as a CSV

comments: author: Darryl Lee
body: THIS is a much better answer!


author: Kelly Arrey
body: Thanks [@Lynne Ratcliffe](/t5/user/viewprofilepage/user-id/3827396) through your link I found [Jira Cloud for Excel](https://marketplace.atlassian.com/apps/1221301/jira-cloud-for-excel-official?hosting=cloud&tab=overview) !


author: Charlie Gavey
body: Hi [@Jeffrey Lyons](/t5/user/viewprofilepage/user-id/5096274)

I've linked your suggestion to a related feature request, which counts as an upvote for this ticket:

<https://jira.atlassian.com/browse/AUTO-241>

Cheers,

Charlie


author: Darryl Lee
body: Hey [@Jeffrey Lyons](/t5/user/viewprofilepage/user-id/5096274) and [@Mark Segall](/t5/user/viewprofilepage/user-id/4666637) ....

Well, you**could** use the [Web Request action](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-web-request) to make a POST to somewhere on the Internets, and you could schedule that to run against a JQL query against your FEATURE project every day.

The problem would be that I'm pretty sure Google GSheets and Drive's APIs require more complicated authentication than can be done with Web Requests (which are limited to Basic Auth in headers).

So what I guess I'm saying is that another alternative would be to try and find or create a service that can "receive" data from an Automation POST, and "feed" it to Google, and this would at least alleviate you from having to program to the the Jira API.


author: Mark Segall
body: Hi [@Jeffrey Lyons](/t5/user/viewprofilepage/user-id/5096274) - Natively, this simply isn't possible. You would need to do some custom development for this leveraging the API.


Tags: cloud

export
Reopen Issue if Customer add a comment
Asked by Steffen Schmerler:

I have created this automation.

The aim is: A Ticket should be reopen if the ticket is closes and after that a customer add a new comment

The Problem is: If the Service-Desk-user close the ticket and add a comment (in the same moment) the will be ticket reopen.

What can i do that the ticket reopen only if a customer add a ticket after the ticket is closed

Thanks

Steffen

![2022-12-06 10_08_04-Automatisierung - Fischer Consulting Service-Center.png](https://community.atlassian.com/t5/image/serverpage/image-id/229058iB4B12C6FCEAF09F1/image-size/large?v=v2&px=999 "2022-12-06 10_08_04-Automatisierung - Fischer Consulting Service-Center.png")


Answers:
author: Bill Sheboy
body: Hi [@Steffen Schmerler](/t5/user/viewprofilepage/user-id/2147829)

If your service desk users are in a group, you could add a User Condition to check if the person who trigger the event (e.g. Issue Commented) is not in the group of the service desk users.

Kind regards,  
Bill

comments: author: Steffen Schmerler
body: Hi, thank you for your fast answer.

How is the if i will use my gruop "support-ma"?

THX

Steffen


author: Bill Sheboy
body: Please try with the User Condition, as I described and as documented here: <https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#User>

user: user who triggered the event

check to perform: is not in group

criteria: your group name


author: Steffen Schmerler
body: Thank you,

it works :-)

BR Steffen


author: Mohamed Benziane
body: Hi,

You could try to get the {{issue.comments.author.displayName}} and make sure that it doesn't match a service Desk User.

comments: author: Steffen Schmerler
body: Hi,

thank you for your answer.

Is it necessary to the service desk user with their names

How do it add in my automation?

{{issue.comments.author.displayName}} = "Max Mustermann"  

Thx  
Steffen


Tags: jira-service-desk
Due Date field is coming as null to Zapier even though there is a value in it in Jira
Asked by Moshe Mikanovsky:

I am trying to get the ticket's due date from Jira to Google sheet via Zapier, but the Due Date field comes empty...

I was able to find which customfield (10081) has the Due Date field, using this method (<https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/>) and it does show me the Due Date value in this field in Jira, but not when I get it in Zapier.

Any idea why?


Answers:
author: Bill Sheboy
body: Hi [@Moshe Mikanovsky](/t5/user/viewprofilepage/user-id/4965107)

As you appear to be doing this integration with Zapier, a marketplace addon app, I recommend working with your site admin and contacting their support team for assistance.

Kind regards,  
Bill
I copied a board that has automations and I didn't receive them
Asked by Me Learning:

the automations did not transfer over to my board, how do I fix this?


Answers:
author: John Funk
body: Hi [@Me Learning](/t5/user/viewprofilepage/user-id/5092972) - Welcome to the Atlassian Community!

Automations are not based on boards, so you had to use another method. Can you share the actual automation rule and what is not working with it?


author: Me Learning
body: Yes, I received a board that had automations. For example the label said Monday and the card moves to Monday. Now when I copied it over to my workspace I click on Monday and the card doesn't move. I clicked onto automations and none of the automations that were made are on my board.

i hope this makes sense.

comments: author: Robert Wen_ReleaseTEAM_
body: Just to elaborate: is this for Jira or Trello?


author: Me Learning
body: This is for Trello. There's no support number so it lead me here.


author: Chris Noble
body: Hi [@Me Learning](/t5/user/viewprofilepage/user-id/5092972)

Not sure I understand your post but I want to help.

You stated you received a Trello board that had automations, you copied it and now the automation rules arent listed on your board.  

1) What permission level do you have on the new board?

<br />

Take a look at this Trello automation url - <https://trello.com/en/guide/automate-anything>

You can use that as a guide when setting up the automation rules from the original board


author: Me Learning
body: Hi, I'm not sure why this is so complicated.

I received a board, (it is public) and she set up automations. I then copied the board to my workspace and the automations are not visible.

The board was not view only or only member accessible. It is in MY workspace.

I am aware of how to create automations, I don't understand why the ones that were originally on the board DIDN'T show up when I copied the board.   

when I click on (butler) there is (no previous activity) because I did not set the automations up myself.

I don't need to learn how to make automations I need to understand why they didn't copy with that board, Is that feature only when you are not on the free version??


Tags: cloud
Smart Values : Using Conditionals (IF) in Lists
Asked by Rick Moerloos:

Given a trigger, Field Value Changed, I want to create a Smart Value (Create Variable) containing a string of filtered label values (label starts with 'team/').

Example:

**Issue**

- Labels: team/abc team/def another-label

**Expected Result:**Variable contains

team/abc team/def

I tried the following:

```
{{#labels}}{{#if({{.}}.startsWith("team/"))}}{{.}} {{/}}{{/}}
```

Error: Could not extract smart value parameter: {{.: {{#labels}}{{#if({{.}}.startsWith("team/"))}}{{.}}{{/}}{{/}}

```
{{#if(issue.labels.startsWith("team/"))}}{{.}} {{/}}
```

Result: Variable is empty

This works:

```
{{#labels}}{{.}} {{/}}
```

But returns all the labels.

I know I am close, but the #IF is tripping me up.


Answers:
author: Darryl Lee
body: Hi [@Rick Moerloos](/t5/user/viewprofilepage/user-id/4610822) , I'm working off of this article:

<https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588>

and this reference: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/>

I think what you want is:

```
{{#issue.labels}}
  {{#if(startsWith("team/")) }}{{.}}{{/}}
{{/}}
```

comments: author: Darryl Lee
body: (The trick here is that each label will automatically get iterated through by the IF, so you don't need to include it as **{{.}}**)


author: Rick Moerloos
body: Thank you, Darryl!


Tags: cloud
Using a different git account
Asked by Ishant Jindal:

Greetings,  

I am new to Bitbucket.   

I have previously installed git and set it to a different email. Recently one of my clients provided me a new email address and repo access to that email. When I am cloning the repo it throws an 'invalid credentials' error.   

Things I have tried.

1) added my new email using git config user.email command.  

Any help would be appreciated.  

Thanks \& Regards,


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

Based on your description, I suspect you are trying to clone over HTTPS. The credentials for the git clone are different from the ones used to log in to the UI.

To clone a git repository using HTTPS you'll need to use a command as follows :

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

where :

* **username** : it's your bitbucket account username (not email address). You can check the current username (and change if you want) by navigating to your [personal bitbucket settings](https://bitbucket.org/account/settings/)
* **app password** : a token used to authenticate git operations and API calls. If you haven't already, you can [create a new app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) under your account.

It's important that the credentials above are ++from the account where you have access to the repository++.

Could you try using those credentials for authentication and let us know how it goes?

Thank you, [@Ishant Jindal](/t5/user/viewprofilepage/user-id/5486554) !

Patrik S

comments: author: Ishant Jindal
body: Hey, the mentioned method worked just fine. Thanks for the help.

Best Regards,

Ishant


Tags: bitbucket-cloud

cloud
comments in PR
Asked by adyang:

Why I cannot see the comments from my team members in my PR. He has left a couple of comments but I just see a part of them.


Answers:
author: Theodora Boudale
body: Hi [@adyang](/t5/user/viewprofilepage/user-id/5486438) and welcome to the community!

I would like to ask a few questions so I can better help you:

You mention:
> I just see a part of them

**1.** Can you please clarify if you see only some comments instead of all? Or if you see all comments, but their content is (partially) not visible?

**2.** Can other team members of yours (other than the person who left the comments) view these comments?

**3.** Are these comments added under the **Description** of the pull request or in the source code of the pull request's files?

**4.** Is the user who left these comments a reviewer of this PR? If so, can he see his own comments in the PR with the lozenge **PENDING** at the top of the comment?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket - We couldn?t log you in
Asked by Soo-Hyun Kim:

i am getting following error when login to bit bucket account.

"You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."


Answers:
author: Mark C
body: Hi [@Soo-Hyun Kim](/t5/user/viewprofilepage/user-id/5486061)

Welcome to the community.  

I've checked your Bitbucket Cloud account and it seems marked as a "Dormant" account due to not logging in to **Bitbucket.org** for a long period of time.

I went ahead and reactivated it. You should be able to log in now.

If you're having issues logging in, please kindly reset your password using this link. - <https://id.atlassian.com/login/resetpassword>

Regards,  
Mark C


Tags: unknown-hosting-type
My playwright test cases are failing against localhost of my react app while running pipeline
Asked by Senthil kumar B:

My playwright test cases are failing against localhost of my react app while running bitbucket pipeline but in the same flow if run it in locally all my test cases are passing ..  
what will be issue ?


Answers:
author: Theodora Boudale
body: Hi [@Senthil kumar B](/t5/user/viewprofilepage/user-id/5480664) and welcome to the community!

What kind of error do you see? Are your tests not connecting to localhost or are you seeing a different error?

Kind regards,  
Theodora

comments: author: Senthil kumar B
body: I Need to Connect to the Firebase emulator only in the bitbucket pipeline (ci/cd ) environment but this code is not working fine as i expected   

if (process.env.CI === "true") {  
console.log("Connecting to Firesbase emulators..");  
connectAuthEmulator(auth, "<http://127.0.0.1:9090>");  
}  
what might be the issue ?


author: Theodora Boudale
body: Hi,

What kind of error do you get?

If your tests can't connect to <http://127.0.0.1:9090>, the service may not be up and running yet when you try to connect.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
When clicking a link for a resolved PR comment, it doesn't display that comment
Asked by Yih Tsern:

1. I wrote a PR comment.
2. Someone replied to it, and then resolved my PR comment.
3. I get notified of that reply in email, I click on the link to that reply.
4. The PR is loaded in the browser, then nothing happens: it doesn't scroll to the comment nor display it in a pop-up dialog or whatever.


Answers:
author: Syahrul
body: G'day, [@Yih Tsern](/t5/user/viewprofilepage/user-id/454422)

That's interesting. Could you record a screen video of reproducing the issue and create a support ticket with us in our [Support portal](https://support.atlassian.com/contact/) to troubleshoot the issue further?

Regards,  
Syahrul

comments: author: Yih Tsern
body: Are the steps to reproduce the issue unclear, or nobody in the org is able to reproduce the issue following those steps?

I just realised this is not a bug tracker... ????


author: Yih Tsern
body: I've created a support ticket, thanks for the tips!


Tags: bitbucket-cloud

cloud
My pipeline was executed successfully earlier. Now it gives weird error
Asked by anitha_stephen:

![Screenshot 2024-04-26 at 7.57.46?PM.png](/t5/image/serverpage/image-id/320840iAB923FDAB571B49E/image-size/large?v=v2&px=999 "Screenshot 2024-04-26 at 7.57.46?PM.png")

My bitbucket pipeline was executing successfully since one year. All of the sudden, I'm getting error like this. Could you please check this and revert me back at the earliest.

Regards,

Anitha Stephen


Answers:
author: Mark C
body: Hi [@anitha_stephen](/t5/user/viewprofilepage/user-id/5485172)

Welcome to the community.

Would it be possible for you to re-run the previously successful build and see if the build will still be successful or not?

You can also refer to this existing knowledge-based article on [Troubleshooting Bitbucket Pipelines.](https://confluence.atlassian.com/bbkb/troubleshooting-bitbucket-pipelines-1141505226.html)

Regards,  
Mark C

comments: author: anitha_stephen
body: Hi Team,

Thank you for your response. I've removed image: ubuntu and re-executed the pipeline. Now, I could able to run it successfully. The issue was related to ubuntu and pip version.

Regards,

Anitha Stephen


Tags: bitbucket-cloud

cloud